emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel o


From: Eli Zaretskii
Subject: Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer".
Date: Wed, 17 May 2017 05:30:35 +0300

> Date: Tue, 16 May 2017 20:37:59 +0000
> Cc: address@hidden
> From: Alan Mackenzie <address@hidden>
> 
> How about this as a design?  We introduce a new variable
> `mode-line-window-position', which will be a short propertised string
> typically holding "%p", "%P", or "%o" (or even "%O") with the properties
> currently on the corresponding part of mode-line-position.
> The new `mode-line-position' "includes" `mode-line-window-position' in
> the standard `mode-line-format' way.
> 
> We also introduce a new customizable variable to set it with, which will
> take one of these values:
>   nil: don't display the window position at all;
>   'top: display the window position with "%p";
>   'bottom: display it with "%P";
>   'middle: display it with (the proposed) "%O";
>   'travel: display it with "%o";
>   <further possibilities, such as "(23-30%)" mentioned by somebody>.
> 
> That new variable will have as a :set value the (new) function
> `mode-line-generate-window-position', which will do the obvious thing.

Something like that is what I had in mind, yes.  (Do we really need 2
variables?)



reply via email to

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