diff options
author | Eli Zaretskii <eliz@gnu.org> | 2021-12-08 16:22:10 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-12-08 16:22:10 +0200 |
commit | 538fc1d0e07aed0e535d9e9f2063f429238df422 (patch) | |
tree | 2c1b1ebe40ff909d76cc2008fa269a049fd7386d /etc | |
parent | c8c7822c51325ed300c0ffb91ce42e1868c6bda4 (diff) | |
download | emacs-538fc1d0e07aed0e535d9e9f2063f429238df422.tar.gz |
Fix mode-line display in Calendar mode
* lisp/help.el (substitute-command-keys): New optional argument
NO-FACE, to avoid putting the 'help-key-binding' face on the key
bindings.
* lisp/calendar/calendar.el (calendar-mode-line-entry): Call
'substitute-command-keys' with the new optional argument non-nil.
(Bug#52366)
* doc/lispref/help.texi (Keys in Documentation): Document the new
optional argument of 'substitute-command-keys'.
* etc/NEWS: Announce the addition of a new argument to
'substitute-command-keys'.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -635,7 +635,9 @@ This works like 'C-u M-x apropos-command' but is more discoverable. *** Keybindings in 'help-mode' use the new 'help-key-binding' face. This face is added by 'substitute-command-keys' to any "\[command]" substitution. The return value of that function should consequently -be assumed to be a propertized string. +be assumed to be a propertized string. To prevent the function from +adding the 'help-key-binding' face, call 'substitute-command-keys' +with the new optional argument NO-FACE non-nil. Note that the new face will also be used in tooltips. When using the GTK toolkit, this is only true if 'x-gtk-use-system-tooltips' is t. |