[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.
- Re: Operation of format-mode-line, (continued)
- Re: Operation of format-mode-line, Heime, 2024/07/28
- Re: Operation of format-mode-line, Manuel Giraud, 2024/07/28
- Re: Operation of format-mode-line, Heime, 2024/07/28
- Re: Operation of format-mode-line, Heime, 2024/07/28
- Re: Operation of format-mode-line, Heime, 2024/07/28
- Operation of format-mode-line, Christopher Dimech, 2024/07/28
- Re: Operation of format-mode-line, Manuel Giraud, 2024/07/28
- Re: Operation of format-mode-line, Heime, 2024/07/28
- RE: [External] : Re: Operation of format-mode-line, Drew Adams, 2024/07/28
- Re: Operation of format-mode-line, Michael Heerdegen, 2024/07/29
- Re: Operation of format-mode-line,
Eli Zaretskii <=
- Re: Operation of format-mode-line, Heime, 2024/07/24