0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:07:52 +00:00

org-eldoc: Fix error on shell source blocks

* contrib/lisp/org-eldoc.el (org-eldoc-get-mode-local-documentation-function):
  Handle `org-src-lang-modes' correctly.
This commit is contained in:
Nicolas Goaziou 2019-04-07 09:15:11 +02:00
parent c0218ea746
commit 285486c23b

View file

@ -110,7 +110,7 @@
(defun org-eldoc-get-mode-local-documentation-function (lang)
"Check if LANG-mode sets eldoc-documentation-function and return its value."
(let ((cached-func (gethash lang org-eldoc-local-functions-cache 'empty))
(mode-func (intern-soft (format "%s-mode" lang)))
(mode-func (org-src-get-lang-mode lang))
doc-func)
(if (eq 'empty cached-func)
(when (fboundp mode-func)