mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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'.
This commit is contained in:
parent
c8c7822c51
commit
538fc1d0e0
4 changed files with 22 additions and 10 deletions
|
|
@ -1723,7 +1723,8 @@ COMMAND is a command to run, ECHO is the help-echo text, KEY
|
|||
is COMMAND's keybinding, STRING describes the binding."
|
||||
(propertize (or key
|
||||
(substitute-command-keys
|
||||
(format "\\<calendar-mode-map>\\[%s] %s" command string)))
|
||||
(format "\\<calendar-mode-map>\\[%s] %s" command string)
|
||||
'hands-off-my-face))
|
||||
'help-echo (format "mouse-1: %s" echo)
|
||||
'mouse-face 'mode-line-highlight
|
||||
'keymap (make-mode-line-mouse-map 'mouse-1 command)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue