GNU bug report logs - #42017
26.3; format-mode-line and %p

Previous Next

Package: emacs;

Reported by: Humberto Sgrott Reis <hsgrott <at> gmail.com>

Date: Tue, 23 Jun 2020 03:52:02 UTC

Severity: normal

Tags: notabug

Found in version 26.3

Done: Mattias EngdegÄrd <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias EngdegÄrd <mattiase <at> acm.org>
To: Humberto Sgrott Reis <hsgrott <at> gmail.com>
Cc: 42017 <at> debbugs.gnu.org
Subject: bug#42017: 26.3; format-mode-line and %p
Date: Tue, 23 Jun 2020 15:12:49 +0200
tag 42017 notabug
close 42017
done

> (setq mode-line-format (:eval (format-mode-line "(%p)")))

The result of the form after :eval is the mode-line format string to use, not the final string itself.
What you observe is the effect of using "(25%)" (for example) as a mode-line format string: since "%)" is not a valid format specification, it produces no characters.

Thanks for reporting it just the same, and please do not let this dissuade you from reporting things you think aren't right in the future!





This bug report was last modified 4 years and 331 days ago.

Previous Next


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