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

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

Re: Displaying the window number in the mode line?


From: myrkraverk
Subject: Re: Displaying the window number in the mode line?
Date: Thu, 22 May 2003 13:21:25 +0000

Hi,

Joakim Hove writes:
 > 
 > address@hidden writes:
 > 
 > > I've made a crude hack to jump to a window with specific number, the
 > > functions are available at
 > >
 > >   http://www.emacswiki.org/cgi-bin/wiki.pl?SwitchingWindows
 > >
 > 
 > Looks interesting!
 > 
 > > This has resulted in my desire to display the window[1] number in the
 > > mode line.  So far I've the following function to evalute the number
 > > of the selected window:

 > 1. The *global*-mode-string is just that - i.e. it is gloablly shared
 >    among all windows (and even frames) - hence any code which simply
 >    sets global-mode-string to some value will result in the same value
 >    displayed in all windows. So (as far as I can see)

The (:eval ..) construct is though unique to each modeline.

 > 2. global-mode-string is a string - not a list. The following

Actually, global-mode-string is a list, and now there are two methods
that show the window number in the modeline at the above url.  The
latter is a fixed version of what I was trying to do.


Thanx though,

Johann




reply via email to

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