浏览代码

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.
Nicolas Goaziou 6 年之前
父节点
当前提交
285486c23b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/lisp/org-eldoc.el

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

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