]> code.delx.au - gnu-emacs-elpa/blobdiff - company-elisp.el
Added special keymap that is activated on demand.
[gnu-emacs-elpa] / company-elisp.el
index df7e5686b3ee288ff175f680e4569cbf051a1866..231446b7fe53e8e29ff13e229509e9222a748a42 100644 (file)
@@ -60,8 +60,9 @@
          (doc (if (fboundp symbol)
                   (documentation symbol t)
                 (documentation-property symbol 'variable-documentation t))))
-    (when (string-match ".*$" doc)
-      (match-string 0 doc))))
+    (and (stringp doc)
+         (string-match ".*$" doc)
+         (match-string 0 doc))))
 
 (defun company-elisp (command &optional arg &rest ignored)
   (case command