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: Wed, 24 Jul 2024 19:35:53 +0300

> Date: Wed, 24 Jul 2024 15:40:01 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
> 
> > mode-line-format is a variable, so you can use setq to modify its
> > value. Or you could modify just the value of
> > mode-line-buffer-identification, another variable (which is used to
> > construct the value of mode-line-format), which is where "%12b" comes
> > from.
> > 
> > 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.

If you only change the "12" part of the value of that variable, and
leave the rest (in particular, the 'propertize' part) intact, the
properties will still be the same.



reply via email to

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