help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to instrument for edebug a form (say, a progn) given


From: Marcin Borkowski
Subject: Re: Is there a way to instrument for edebug a form (say, a progn) given to `eval'?
Date: Tue, 05 Jan 2016 10:26:50 +0100
User-agent: mu4e 0.9.13; emacs 25.1.50.1


On 2016-01-04, at 23:58, Drew Adams <address@hidden> wrote:

>> OK, so try C-u C-M-x with this form:
>> (eval '(progn (message "foo") (message "bar")))
>> and see how Edebug doesn't step into the progn.
>> 
>> I suspect that it's impossible to actually edebug the `progn' form here,
>> I just would like to make sure.
>
> Well, as I said earlier, you can at least do this:
>
> (progn
>   (debug)
>   (eval '(progn (message "foo") (message "bar"))))
>
> or this:
>
> (eval '(progn (debug) (message "foo") (message "bar")))

True, though not as convenient as edebug.

Best,

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]