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: Neon Absentius
Subject: Re: window-line and window-column
Date: Fri, 7 Oct 2005 23:08:05 +0000
User-agent: Mutt/1.4.2.1i

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.

-- 
 There is no national science just as there is no national
multiplication table; what is national is no longer science.
         -- Anton Checov




reply via email to

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