summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-12-08 16:22:10 +0200
committerEli Zaretskii <eliz@gnu.org>2021-12-08 16:22:10 +0200
commit538fc1d0e07aed0e535d9e9f2063f429238df422 (patch)
tree2c1b1ebe40ff909d76cc2008fa269a049fd7386d /etc
parentc8c7822c51325ed300c0ffb91ce42e1868c6bda4 (diff)
downloademacs-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/NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 8e38c3690c1..734de07582c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.