]> code.delx.au - gnu-emacs-elpa/commitdiff
Fixed elisp documentation buffer always showing the same doc.
authorNikolaj Schumacher <git@nschum.de>
Sat, 21 Mar 2009 11:36:05 +0000 (12:36 +0100)
committerNikolaj Schumacher <git@nschum.de>
Sat, 21 Mar 2009 11:36:51 +0000 (12:36 +0100)
company-elisp.el
company.el

index 7fcea0cf812fb826bf4109e2cd0e40a52d820387..fdcb97017ee581305702baacb4afa9cda5359db1 100644 (file)
                            (all-completions arg obarray
                                             'company-elisp-predicate))))
     ('meta (company-elisp-doc arg))
-    ('doc-buffer (describe-function 'describe-function)
-                 (help-buffer))))
+    ('doc-buffer (let ((symbol (intern arg)))
+                   (when (or (ignore-errors (describe-function symbol))
+                             (ignore-errors (describe-variable symbol)))
+                     (help-buffer))))))
 
 (provide 'company-elisp)
 ;;; company-elisp.el ends here
index 9e6128055bc651bc9855e7c317edb81b680dca3f..c4ee791b8976dafcfe6db7f0f7220f1a12c1a7cd 100644 (file)
@@ -55,6 +55,7 @@
 ;;
 ;;; Change Log:
 ;;
+;;    Fixed elisp documentation buffer always showing the same doc.
 ;;    Added `company-echo-strip-common-frontend'.
 ;;    Added `company-show-numbers' option and M-0 ... M-9 default bindings.
 ;;    Don't hide the echo message if it isn't shown.