GNU bug report logs - #14646
24.3.50; edebug-defun causes an error for eval-when-compile

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Tue, 18 Jun 2013 00:08:01 UTC

Severity: important

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 14646 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 14646 <at> debbugs.gnu.org
Subject: Re: bug#14646: 24.3.50;
 edebug-defun causes an error for eval-when-compile
Date: Wed, 20 Nov 2013 21:46:36 -0500
> 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)





This bug report was last modified 11 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.