diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2022-04-23 22:50:07 -0400 |
---|---|---|
committer | Ihor Radchenko <yantar92@gmail.com> | 2022-04-24 15:50:02 +0800 |
commit | 4936783e74b7b51d73a0ac397710ef59081819de (patch) | |
tree | 77e008ce1d4517b1a641ff1b7c710183bf95ac43 | |
parent | f237d6720ebdb5d5db634fb984ed875e02785a7c (diff) |
lisp/org-eldoc.el: Fix inf-loop when point in org src blocks
(org-eldoc-documentation-function): Return nil when src block lang is
"org". Without this, the `org-eldoc-documentation-function' is
repeated called and causes an inf-loop.
Fixes the issue reported in
<https://lists.gnu.org/r/emacs-orgmode/2022-04/msg00373.html>.
-rw-r--r-- | lisp/org-eldoc.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org-eldoc.el b/lisp/org-eldoc.el index 4febac1..3435745 100644 --- a/lisp/org-eldoc.el +++ b/lisp/org-eldoc.el @@ -142,6 +142,8 @@ (org-eldoc-get-src-header) (let ((lang (org-eldoc-get-src-lang))) (cond + ((string= lang "org") ;Prevent inf-loop for Org src blocks + nil) ((or (string= lang "emacs-lisp") (string= lang "elisp")) |