unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Stefan Monnier via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>,
	 Stefan Monnier <monnier@iro.umontreal.ca>,
	Jean Louis <bugs@gnu.support>
Subject: Re: How to get full value of variable during edebug function tracing?
Date: Mon, 20 Jun 2022 07:35:44 +0200	[thread overview]
Message-ID: <AM9PR09MB49774FDE5B77DEC198652F0696B09@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <87k09cyj0b.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jun 2022 13:45:08 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Arthur Miller <arthur.miller@live.com> writes:
>
>> That sounds useful. Could you pop it up in a tooltip?
>
> The main point of this is to allow the user to interact with the value,
> which a tooltip doesn't help with.

One does not exclude the other?

Anyway, I just replied on what you wrote:

> That's what I do, too, but it's kinda cumbersome, isn't it?  So I've now
> made `C-u e' in edebug in Emacs 29 pop up a new buffer and pretty-print
> the value.

If you just pretty print it in a separate buffer, it is almost as good as in a
tooltip, but can be a bit distracting depending on how Emacs chose to split
buffer. Didn't have time to build and test your code, my build is like two weeks
old or so.

>> What about using mouse pointer as a "secondary cursor", if we would
>> like to see some previous value, so we don't have to move cursor
>> around:
>
> [...]
>
>> Could that be useful to have on a C-u C-u e?
>
> It sounds like a quite specialised use case.

Examining the value of a variable while debugging?

For me it is a normal thing. I press 'e' and then type the name of a variable,
or I sometimes move curser at the end of var/expression and press C-x C-e. Would
be nice if edebug instrumented code with help-echo to display values, or even
the doc together with the value, similar as in help buffer but in a
tooltip. That way we could just move the pointer over symbols and quickly see
values/docs, instead of pressing e and typing.



      reply	other threads:[~2022-06-20  5:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-17 18:25 How to get full value of variable during edebug function tracing? Jean Louis
2022-06-17 21:34 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-06-17 22:19   ` Lars Ingebrigtsen
2022-06-18  2:36     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-06-18  8:22     ` Jean Louis
2022-06-18 11:26       ` Lars Ingebrigtsen
2022-06-19  6:22     ` Arthur Miller
2022-06-19 11:45       ` Lars Ingebrigtsen
2022-06-20  5:35         ` Arthur Miller [this message]

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=AM9PR09MB49774FDE5B77DEC198652F0696B09@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
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).