[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14646: 24.3.50; edebug-defun causes an error for eval-when-compile
From: |
Stefan Monnier |
Subject: |
bug#14646: 24.3.50; edebug-defun causes an error for eval-when-compile |
Date: |
Wed, 20 Nov 2013 21:46:36 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Does anyone have a solution for this?
I installed the patch below which seems to fix it,
Stefan
--- lisp/emacs-lisp/byte-run.el 2013-11-04 20:06:02 +0000
+++ lisp/emacs-lisp/byte-run.el 2013-11-21 02:43:15 +0000
@@ -392,7 +391,7 @@
"Like `progn', but evaluates the body at compile time if you're compiling.
Thus, the result of the body appears to the compiler as a quoted constant.
In interpreted code, this is entirely equivalent to `progn'."
- (declare (debug t) (indent 0))
+ (declare (debug (def-body)) (indent 0))
(list 'quote (eval (cons 'progn body) lexical-binding)))
(defmacro eval-and-compile (&rest body)