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

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

Re: How can I debug a macro?


From: Alan Schmitt
Subject: Re: How can I debug a macro?
Date: Thu, 17 Dec 2015 08:27:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

On 2015-12-16 22:21, phillip.lord@russet.org.uk (Phillip Lord) writes:

> If this still doesn't help, and you need to debug the *macro* not the
> usage, then put point after this after do M-x pp-macroexpand-last-sexp
>
> (org-babel-comint-with-output
>                 (session org-babel-ocaml-eoe-output t full-body)
>                 (insert
>                (concat
>                 (org-babel-chomp
>                 full-body)";;\n"org-babel-ocaml-eoe-indicator))

Thank you, this was most helpful and I learned a lot. I ended up using
debug-on-entry and stepping through the function before I read your
message, I found out the problem was the t argument to the macro. I can
see the problem better in the expanded macro.

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated December 13, 2015, Mauna Loa Obs.): 401.31 ppm

Attachment: signature.asc
Description: PGP signature


reply via email to

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