1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-26 01:40:53 -08:00

Fix -maybe-get-prefix-title use of key-binding

key-binding doesn't work with all forms of key strings.

See #143
This commit is contained in:
Justin Burkett 2016-10-04 16:48:40 -04:00
parent c493e0b4bb
commit d939e06fda

View file

@ -1303,7 +1303,7 @@ An empty stiring is returned if no title exists."
(mode-alist (assq major-mode alist))
(mode-res (when mode-alist
(assoc-string keys mode-alist)))
(binding (key-binding keys))
(binding (key-binding (kbd keys)))
(alternate (when (and binding (symbolp binding))
(symbol-name binding))))
(cond (mode-res (cdr mode-res))