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: Yuri Khan
Subject: Re: Operation of format-mode-line
Date: Wed, 24 Jul 2024 23:07:12 +0700

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.



reply via email to

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