org-eldoc: Fix "wrong-type-argument symbolp" error

* contrib/lisp/org-eldoc.el (org-eldoc-documentation-function): The
  doc-fun object may be a function object and not a symbol.
This commit is contained in:
Fabrice Popineau 2016-07-07 11:26:50 +02:00 committed by Nicolas Goaziou
parent cd3a552ef4
commit e31587fa13
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@
(string= lang "golang")) (when (require 'go-eldoc nil t)
(go-eldoc--documentation-function)))
(t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)))
(when (fboundp doc-fun) (funcall doc-fun))))))))
(when (functionp doc-fun) (funcall doc-fun))))))))
;;;###autoload
(defun org-eldoc-load ()