help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window-line and window-column


From: rgb
Subject: Re: window-line and window-column
Date: 7 Oct 2005 17:20:47 -0700
User-agent: G2/0.2

Neon Absentius wrote:
> On Fri, Oct 07, 2005 at 03:44:23PM -0700, rgb wrote:
> > How can I tell where, within the current window, I am.
> >
> > Is there any way to tell what window line I'm currently on?  Even if I
> > use move-to-window-line and it's successful I may not actually be on
> > that line when it returns.  But realistically, I need to know what line
> > I'm on without moving and I don't see how I can tell.
> >
> > I can't seem to fine a way to tell what window column I'm in either.
> > It seems I could probably use (window-width), (current-column) and
> > truncate-lines to figure it out but comments about popup-ruler on the
> > wiki make me think such a formula wouldn't be accurate.
> >
>
> These
>
> (setq line-number-mode t)
> (setq column-number-mode t)
>
> display the line number and curent column in the modeline.
>
But
1) I need the values programatically which neither supplies.
2) Niether actually displays the values I'm looking for either.
   They simply display (current-column) and (line-number-at-pos)
   which are of little use to this situation.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]