]> git.eshelyaron.com Git - emacs.git/commit
Fix display of menu-bar bindings of commands in *Help* buffers
authorEli Zaretskii <eliz@gnu.org>
Wed, 19 Apr 2023 17:46:40 +0000 (20:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 19 Apr 2023 17:46:40 +0000 (20:46 +0300)
commit9ac12592781934bcd934bc0cae71a637311119ec
treefe6fdfd30517f194a3e8f780be85868d10eb33f0
parentecdd3a9efac3e56850ce10260747c158865f9378
Fix display of menu-bar bindings of commands in *Help* buffers

* lisp/help-fns.el (help-fns--insert-menu-bindings): Propertize
with 'help-key-binding' face only the menu items, not the arrows
between successive items.  This is because 'char-displayable-p' is
unreliable when we propertize the character with an arbitrary
face: that face could specify a font which doesn't support the
character after all, while 'char-displayable-p' assumes there are
no restrictions on fonts that can be used for displaying the
character.  Also, make the code more efficient by avoiding the
call to 'char-displayable-p' inside the loop.
lisp/help-fns.el