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

Merge pull request from alezost/keymap-doc-fix

Handle the case when keymap has a broken documentation
GitHub-reference: https://github.com/jwiegley/use-package/issues/223
This commit is contained in:
John Wiegley 2016-02-25 18:19:58 -05:00
commit 4593f178e3

View file

@ -271,7 +271,8 @@ function symbol (unquoted)."
elem)))
;; must be a symbol, non-symbol keymap case covered above
((and bind-key-describe-special-forms (keymapp elem))
(get elem 'variable-documentation))
(let ((doc (get elem 'variable-documentation)))
(if (stringp doc) doc elem)))
((symbolp elem)
elem)
(t