]> git.eshelyaron.com Git - emacs.git/commit
Fix return value of help--key-description-fontified
authorStefan Kangas <stefankangas@gmail.com>
Fri, 19 Aug 2022 18:19:59 +0000 (20:19 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 19 Aug 2022 18:36:12 +0000 (20:36 +0200)
commita936335aa02bd6d142ce61563e6cf70a1a7c271b
treed1dc84297b9b84d698cc130e79b7cbb5681fb031
parent935e4da0e1389fd5a8f836ac81dc53d698f4439f
Fix return value of help--key-description-fontified

This fixes a bug with warning about obsolete commands in
`command-execute', where we incorrectly showed empty parenthesis
instead of the empty string when there was no keybinding for the new
command.

* lisp/help.el (help--key-description-fontified): Return nil instead
of the empty string if KEYS argument is nil.
* test/lisp/help-tests.el (help--key-description-fontified): New test.
(with-substitute-command-keys-test): Fix indentation.
lisp/help.el
test/lisp/help-tests.el