1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

get-binding-description: return keymap symbol

instead of "#<keymap>".
This commit is contained in:
Noam Postavsky 2015-03-19 11:25:18 -04:00
parent 1b6605652c
commit f5f4102ca1

View file

@ -234,12 +234,9 @@ function symbol (unquoted)."
"#<keymap>")
(t
elem)))
((keymapp elem)
(if (and bind-key-describe-special-forms
(symbolp elem)
;; must be a symbol, non-symbol keymap case covered above
((and bind-key-describe-special-forms (keymapp elem))
(get elem 'variable-documentation))
(format "%s" (get elem 'variable-documentation))
"#<keymap>"))
((symbolp elem)
elem)
(t