all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: emacsq via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 55096@debbugs.gnu.org
Subject: bug#55096: Eldoc showing elisp variable value beside docs
Date: Sun, 24 Apr 2022 18:24:36 +0000	[thread overview]
Message-ID: <eG53qUa-01CEr2aGMi324YspFoT1I21drf5_0sOLU54bwuM78HsoexyaxXosJsOyku_3hBZtPx4-d4j0J1hMWM37k2qdSUtBrW_e3NozQ0g=@protonmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

Eldoc showing the docs in the minibuffer is quite useful, but I often check elisp variable values too in the code, and it can be quite handy if eldoc shows that too simply by putting cursor on the variable.

So for variables the value too can be shown after the docs. In case of primitive values it's quite simple, if there is a local value then it can show the local value first and then the global one.

In case of complex values the full value may be too big to display, but the beginning of it can still be shown, truncated after, say, 30 chars. It is still useful if, for example, a variable can be nil and also a list. Then you can see at a glance if it has a value set.

[-- Attachment #2: Type: text/html, Size: 1107 bytes --]

             reply	other threads:[~2022-04-24 18:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-24 18:24 emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-04-25  8:09 ` bug#55096: Eldoc showing elisp variable value beside docs Lars Ingebrigtsen
2022-04-25 11:00   ` Štěpán Němec
2022-05-24 12:50     ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to='eG53qUa-01CEr2aGMi324YspFoT1I21drf5_0sOLU54bwuM78HsoexyaxXosJsOyku_3hBZtPx4-d4j0J1hMWM37k2qdSUtBrW_e3NozQ0g=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=55096@debbugs.gnu.org \
    --cc=laszlomail@protonmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.