[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.
- Re: window-line and window-column, (continued)
- Re: window-line and window-column, Neon Absentius, 2005/10/07
- Re: window-line and window-column, Lennart Borgman, 2005/10/07
- Re: window-line and window-column, Johan Bockgård, 2005/10/07
- Re: window-line and window-column, rgb, 2005/10/07
- Re: window-line and window-column, Stefan Monnier, 2005/10/11
- Re: window-line and window-column, rgb, 2005/10/11
- Re: window-line and window-column, Stefan Monnier, 2005/10/11
- Re: window-line and window-column, rgb, 2005/10/11
- Re: window-line and window-column, rgb, 2005/10/13
- Re: window-line and window-column, rgb, 2005/10/14
Message not available
- Re: window-line and window-column,
rgb <=
Re: window-line and window-column, Hovav Shacham, 2005/10/10