Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> The problem is that the byte code comes from Python mode.
> I solved the problem with this:
>
> $ diff -uw contrib/lisp/org-eldoc.el contrib/lisp/org-eldoc.el
> --- contrib/lisp/org-eldoc.el 2016-02-29 11:13:22.330099500 +0100
> +++ contrib/lisp/org-eldoc.el 2016-07-04 07:11:10.466144400 +0200
> @@ -155,7 +155,8 @@
> (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 (or (and (symbolp doc-fun) (fboundp doc-fun))
> + (functionp doc-fun)) (funcall doc-fun))))))))
Wouldn't
(when (functionp doc-fun) (funcall doc-fun))
be enough?
Also, would you provide a patch for this?
Thank you.
Regards,