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

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

Re: Operation of format-mode-line


From: Heime
Subject: Re: Operation of format-mode-line
Date: Wed, 24 Jul 2024 16:30:51 +0000

On Thursday, July 25th, 2024 at 4:07 AM, Yuri Khan <yuri.v.khan@gmail.com> 
wrote:

> On Wed, 24 Jul 2024 at 22:40, Heime heimeborgia@protonmail.com wrote:
> 
> > On Thursday, July 25th, 2024 at 1:23 AM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > More generally, take a look at lisp/bindings.el, where all the parts
> > > of mode-line-format are defined and then used to produce the final
> > > value of that variable.
> > 
> > If I change mode-line-buffer-identification, would I not loose the text
> > properties and the local-map for the mouse action ? Somehow I have to put
> > those back.
> 
> 
> Have you actually looked at the definition of mode-line-buffer-identification?
> 
> (defvar-local mode-line-buffer-identification
> (propertized-buffer-identification "%12b")
> "…docstring…")
> 
> Reuse the wrapper. Change the payload.

I am not sure whether there are hidden text properties.  You all talk to me 
in the abstract, expecting me to know what to do.



reply via email to

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