GNU bug report logs - #57080
28.1; The %m modeline construct does not work for emacs-lisp-mode

Previous Next

Package: emacs;

Reported by: diredwolf <diredwolf1 <at> gmail.com>

Date: Tue, 9 Aug 2022 16:18:01 UTC

Severity: normal

Found in version 28.1

Done: Phil Sainty <psainty <at> orcon.net.nz>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 57080 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: diredwolf <diredwolf1 <at> gmail.com>
Cc: 57080 <at> debbugs.gnu.org
Subject: Re: 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 <at> 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.)




This bug report was last modified 2 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.