]> git.eshelyaron.com Git - emacs.git/commit
Fix substitute-command-keys for global binding lookup
authorRobert Pluim <rpluim@gmail.com>
Wed, 21 Sep 2022 07:12:53 +0000 (09:12 +0200)
committerRobert Pluim <rpluim@gmail.com>
Wed, 21 Sep 2022 07:15:47 +0000 (09:15 +0200)
commitcee9a2cbe0cd2cb1af602077727c03f2ae62fa90
treef61fde18b86fa47ae9a49694529442bca2746d1f
parent5fbf93d918ba85afa8506569328dfc9c510cee42
Fix substitute-command-keys for global binding lookup

The previous change forgot to account for the (rare) case of doing a
lookup for a global binding when a specific keymap is in force.

* lisp/help.el (substitute-command-keys): Redo lookup in global map if
lookup in specific map fails.
*
test/lisp/help-tests.el (help-tests-substitute-command-keys/keymap-change):
Add testcase for specific map overriding advertised-binding.
lisp/help.el
test/lisp/help-tests.el