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

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

Re: Why is defun not executed during load-file?


From: Drew Adams
Subject: Re: Why is defun not executed during load-file?
Date: Sun, 30 May 2021 22:48:07 +0000

> Macros are much more difficult to debug...

`macroexpand` and `macroexpand-1` are your friends.

Separate that first step, which is just reduction
(aka rewriting / reduction semantics), from the
subsequent step of Lisp-evaluating the sexp that
results from it.

So debug the macro-expansion step, to ensure you
get the sexp you want.  And debug evaluation of
that sexp - separately.



reply via email to

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