Correctly treat progn contents as toplevel forms when byte compiling

This commit is contained in:
Daniel Colascione 2014-04-21 02:34:21 -07:00
parent 0c8d94555c
commit 985c035f2d
5 changed files with 111 additions and 24 deletions

View file

@ -97,7 +97,10 @@ each clause."
(defun macroexp--compiler-macro (handler form)
(condition-case err
(apply handler form (cdr form))
(error (message "Compiler-macro error for %S: %S" (car form) err)
(error
(message "--------------------------------------------------")
(backtrace)
(message "Compiler-macro error for %S: %S" (car form) err)
form)))
(defun macroexp--funcall-if-compiled (_form)