[Top][All Lists]

[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: Dani Moncayo
Subject: Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer".
Date: Thu, 18 May 2017 21:16:06 +0200

On Wed, May 17, 2017 at 11:32 PM, Alan Mackenzie <address@hidden> wrote:
> Hello, Eli and Dani.

Hi Alan, thanks for working on this.

> For %q, I haven't included the parentheses Dani suggested, and it's a
> bit DWIMy, with things like "All", "Top-5%", "63%-Bot", "15-25%".
> Just to save you some work, I found the following useful for trying them
> out, by setting the pertinent part of the standard mode-line format.
> (i) (For %O): (aset (cadr (car mode-line-position)) 1 ?O)
> (ii) (For %q): (aset (cadr (car mode-line-position)) 1 ?q)
>       and      (setcar (car mode-line-position) -7)
> Thoughts?

Wrt %q, I find the format to be too irregular.  I'd prefer to stick to
"N-M%" (with no whitespace around the hyphen), even when N is 0 or M
is 100.  The only exception to that format would be when N=0 _and_
M=100, in which case I'd prefer "All" rather than "0-100%".   Also,
I'd like the whole text related to %q to take a constant amount of
space in the modeline, to avoid shifting any text to the right side of


Dani Moncayo

reply via email to

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