[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57080: 28.1; The %m modeline construct does not work for emacs-lisp-
From: |
Eli Zaretskii |
Subject: |
bug#57080: 28.1; The %m modeline construct does not work for emacs-lisp-mode |
Date: |
Tue, 09 Aug 2022 19:45:01 +0300 |
> From: diredwolf <diredwolf1@gmail.com>
> Date: Tue, 9 Aug 2022 18:06:16 +0200
>
> - Launch emacs -q
> - Evaluate this :: (setq-default mode-line-format "[%m]")
>
> For every major mode you should see for example [Message] or [Dired by
> name] or [Help] but for elisp-mode you get [].
%m in mode-line-format is obsolete; use the variable mode-name
instead.
(The technical reason behind what you see is that %m displays the mode
name only if the value of mode-name is a string, which in this case it
isn't.)