]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle the case when keymap has a broken documentation
authorAlex Kost <alezost@gmail.com>
Mon, 22 Jun 2015 16:43:55 +0000 (19:43 +0300)
committerAlex Kost <alezost@gmail.com>
Mon, 22 Jun 2015 16:43:55 +0000 (19:43 +0300)
lisp/use-package/bind-key.el

index 5cace724196bd4335d0ecc4d71beabe5786af0a4..ad0bf5c2df5565bb2e3cf08443c3b447ed81120b 100644 (file)
@@ -256,7 +256,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