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:
parent
cd3a552ef4
commit
e31587fa13
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue