emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] lisp/org-eldoc.el: Eldoc does not work in org source blocks
@ 2023-05-29  0:35 Bruno Cardoso
  2023-05-29  7:42 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Bruno Cardoso @ 2023-05-29  0:35 UTC (permalink / raw)
  To: emacs-orgmode


Hello everyone.

The Eldoc interface `eldoc-print-current-symbol-info' works everywhere just fine for me (Emacs
28.2), but it does not work inside org source blocks for elisp code. Yet, reverting to the
obsolete `elisp-eldoc-documentation-function' in org-eldoc's
`org-eldoc-documentation-function' works (see below). I tested it both in my own config and
"emacs -Q" with same results.

---
 lisp/org-eldoc.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-eldoc.el b/lisp/org-eldoc.el
index 7137c46..24f0aa3 100644
--- a/lisp/org-eldoc.el
+++ b/lisp/org-eldoc.el
@@ -156,7 +156,8 @@
                    (fboundp 'elisp-eldoc-funcall))
               (let ((eldoc-documentation-functions
                      '(elisp-eldoc-var-docstring elisp-eldoc-funcall)))
-                (eldoc-print-current-symbol-info)))
+                ;;(eldoc-print-current-symbol-info)))
+                (elisp-eldoc-documentation-function)))
              ((fboundp 'elisp-eldoc-documentation-function)
               (elisp-eldoc-documentation-function))
              (t            ; Emacs<25
-- 
2.40.1


Is this in fact a bug or should I have configured something else?

Best,

Bruno.


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-29 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-29  0:35 [BUG] lisp/org-eldoc.el: Eldoc does not work in org source blocks Bruno Cardoso
2023-05-29  7:42 ` Ihor Radchenko
2023-05-29 16:24   ` Bruno Cardoso

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).