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: Eli Zaretskii
Subject: Re: Operation of format-mode-line
Date: Thu, 25 Jul 2024 10:18:15 +0300

> Date: Wed, 24 Jul 2024 16:30:51 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
> 
> > > > 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. 

The text properties are all generated by
propertized-buffer-identification, so if you leave that intact and
only change "%12b" to "%20b", all the rest should be as it was before.



reply via email to

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