emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bruno Cardoso <cardoso.bc@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] lisp/org-eldoc.el: Eldoc does not work in org source blocks
Date: Sun, 28 May 2023 21:35:52 -0300	[thread overview]
Message-ID: <874jnwynx3.fsf@gmail.com> (raw)


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.


             reply	other threads:[~2023-05-29  0:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-29  0:35 Bruno Cardoso [this message]
2023-05-29  7:42 ` [BUG] lisp/org-eldoc.el: Eldoc does not work in org source blocks Ihor Radchenko
2023-05-29 16:24   ` Bruno Cardoso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jnwynx3.fsf@gmail.com \
    --to=cardoso.bc@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).