unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Is there a way to instrument for edebug a form (say, a progn) given to `eval'?
Date: Tue, 05 Jan 2016 10:04:55 +0100	[thread overview]
Message-ID: <87k2nos8g8.fsf@mbork.pl> (raw)
In-Reply-To: <jwv7fjoej39.fsf-monnier+gmane.emacs.help@gnu.org>



On 2016-01-05, at 05:41, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> OK, so try C-u C-M-x with this form:
>
>> (eval
>>  '(progn
>>     (message "foo")
>>     (message "bar")))
>
> Of course, this is a silly use of `eval' and for more real uses this

Of course it's silly, it wasn't meant to be anything else.

> problem typically doesn't happen.  This said, you can try
>
>    (eval (edebug-\` (progn (message "foo") (message "bar"))))
>
> Where edebug-\` is an alias for the normal backquote which tells Edebug
> that the quoted data is actually dynamically-generated code, so Edebug
> can try to "do the right thing".

Ha, that's interesting.  Do I get it correctly that the "normal
backquote" is the symbol \`, which is an alias for the `backquote'
macro?

>         Stefan

Thanks,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



  reply	other threads:[~2016-01-05  9:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 12:35 Is there a way to instrument for edebug a form (say, a progn) given to `eval'? Marcin Borkowski
2015-12-30 17:11 ` Drew Adams
2015-12-30 17:29 ` Michael Heerdegen
2016-01-04 22:30   ` Marcin Borkowski
2016-01-04 22:58     ` Drew Adams
2016-01-05  9:26       ` Marcin Borkowski
2016-01-04 23:26     ` Michael Heerdegen
2016-01-05  9:16       ` Marcin Borkowski
2016-01-05 20:00         ` Michael Heerdegen
2016-01-05 20:08           ` Marcin Borkowski
2016-01-05  4:41     ` Stefan Monnier
2016-01-05  9:04       ` Marcin Borkowski [this message]
2016-01-05 12:43         ` Stefan Monnier
2016-01-01 13:48 ` Thorsten Jolitz
2016-01-01 14:22   ` Stefan Monnier
2016-01-01 15:59     ` Thorsten Jolitz
2016-01-02 17:39       ` Stefan Monnier

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=87k2nos8g8.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@gnu.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).