GNU bug report logs -
#14646
24.3.50; edebug-defun causes an error for eval-when-compile
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14646 in the body.
You can then email your comments to 14646 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14646
; Package
emacs
.
(Tue, 18 Jun 2013 00:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Katsumi Yamaoka <yamaoka <at> jpl.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 18 Jun 2013 00:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I'm unable to debug a function that uses eval-when-compile.
Could you try edebug-defun on this form?
(defun foo ()
(eval-when-compile
(concat "foo" "+" "bar")))
Debugger entered--Lisp error: (wrong-type-argument consp nil)
edebug-before(1)
(edebug-after (edebug-before 1) 2 (concat "foo" "+" "bar"))
(progn (edebug-after (edebug-before 1) 2 (concat "foo" "+" "bar")))
eval((progn (edebug-after (edebug-before 1) 2 (concat "foo" "+" "bar"))) nil)
[...]
edebug-defun()
call-interactively(edebug-defun nil nil)
command-execute(edebug-defun)
Thanks.
In GNU Emacs 24.3.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars)
of 2013-06-18 on localhost
Bzr revision: 113028 yamaoka <at> jpl.org-20130617220627-fag61aiyko1lmuoq
Windowing system distributor `The Cygwin/X Project', version 11.0.11401000
Configured using:
`configure --verbose --with-x-toolkit=lucid --without-imagemagick
--without-dbus --without-gconf --without-gsettings'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14646
; Package
emacs
.
(Wed, 20 Nov 2013 07:16:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14646 <at> debbugs.gnu.org (full text, mbox):
Does anyone have a solution for this?
-------------------- Start of forwarded message --------------------
From: Katsumi Yamaoka <yamaoka <at> jpl.org>
Subject: bug#14646: 24.3.50; edebug-defun causes an error for eval-when-compile
Date: Tue, 18 Jun 2013 09:07:19 +0900
Message-ID: <b4m1u80l1s8.fsf <at> jpl.org>
To: 14646 <at> debbugs.gnu.org
Hi,
I'm unable to debug a function that uses eval-when-compile.
Could you try edebug-defun on this form?
(defun foo ()
(eval-when-compile
(concat "foo" "+" "bar")))
Debugger entered--Lisp error: (wrong-type-argument consp nil)
edebug-before(1)
(edebug-after (edebug-before 1) 2 (concat "foo" "+" "bar"))
(progn (edebug-after (edebug-before 1) 2 (concat "foo" "+" "bar")))
eval((progn (edebug-after (edebug-before 1) 2 (concat "foo" "+" "bar"))) nil)
[...]
edebug-defun()
call-interactively(edebug-defun nil nil)
command-execute(edebug-defun)
Thanks.
-------------------- End of forwarded message --------------------
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14646
; Package
emacs
.
(Thu, 21 Nov 2013 02:47:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14646 <at> debbugs.gnu.org (full text, mbox):
> 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)
bug closed, send any further explanations to
14646 <at> debbugs.gnu.org and Katsumi Yamaoka <yamaoka <at> jpl.org>
Request was from
Stefan Monnier <monnier <at> IRO.UMontreal.CA>
to
control <at> debbugs.gnu.org
.
(Thu, 21 Nov 2013 15:10:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14646
; Package
emacs
.
(Thu, 21 Nov 2013 23:22:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 14646-done <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier wrote:
>> Does anyone have a solution for this?
> I installed the patch below which seems to fix it,
Works nicely. Thank you!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 20 Dec 2013 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 182 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.