Browse Source

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.
Fabrice Popineau 8 years ago
parent
commit
e31587fa13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-eldoc.el

+ 1 - 1
contrib/lisp/org-eldoc.el

@@ -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 ()