1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -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>") "#<keymap>")
(t (t
elem))) elem)))
((keymapp elem) ;; must be a symbol, non-symbol keymap case covered above
(if (and bind-key-describe-special-forms ((and bind-key-describe-special-forms (keymapp elem))
(symbolp elem) (get elem 'variable-documentation))
(get elem 'variable-documentation))
(format "%s" (get elem 'variable-documentation))
"#<keymap>"))
((symbolp elem) ((symbolp elem)
elem) elem)
(t (t