[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?)
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., (continued)
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Perry E. Metzger, 2017/05/18
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Eli Zaretskii, 2017/05/19
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Kaushal Modi, 2017/05/21
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Eli Zaretskii, 2017/05/22
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Kaushal Modi, 2017/05/22
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Alan Mackenzie, 2017/05/22
- Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Kaushal Modi, 2017/05/22
Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Eli Zaretskii, 2017/05/15
Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer"., Andreas Schwab, 2017/05/16
Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer". [Patch], Alan Mackenzie, 2017/05/20