[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: Perry E. Metzger
Subject: Re: Proposal: new mode-line `%'-construct %o meaning "Degree of travel of window through buffer".
Date: Thu, 18 May 2017 16:13:04 -0400

On Thu, 18 May 2017 22:43:08 +0300 Eli Zaretskii <address@hidden> wrote:
> > Date: Thu, 18 May 2017 12:45:41 -0400
> > From: "Perry E. Metzger" <address@hidden>
> > Cc: address@hidden, address@hidden,
> > address@hidden 
> > > The mode-line format already supports :eval, so this should
> > > already be possible?  
> > 
> > I meant just having a knob that could be set to a function that
> > would run and produce the value for %p rather than changing
> > mode-line-format with :eval. Though maybe this would be too
> > slow?  
> I don't mind, I just don't see a lot of difference between having a
> knob and using :eval directly, for someone who can write a Lisp
> function that would work in this context.

Perhaps I don't understand the difference. I thought that
mode-line-format required that I specify the entire mode line from
scratch, while I'm just proposing that if a particular function is
bound that %p would override its method of calculating this one
value. Am I mistaken on the former matter?

Perry E. Metzger                address@hidden

reply via email to

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