(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
;;
;;; 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.