unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: 14646@debbugs.gnu.org
Subject: bug#14646: 24.3.50; edebug-defun causes an error for eval-when-compile
Date: Wed, 20 Nov 2013 21:46:36 -0500	[thread overview]
Message-ID: <jwvtxf6cwcx.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <b4mwqk3tugl.fsf@jpl.org> (Katsumi Yamaoka's message of "Wed, 20 Nov 2013 16:15:22 +0900")

> 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)






  reply	other threads:[~2013-11-21  2:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18  0:07 bug#14646: 24.3.50; edebug-defun causes an error for eval-when-compile Katsumi Yamaoka
2013-11-20  7:15 ` Katsumi Yamaoka
2013-11-21  2:46   ` Stefan Monnier [this message]
2013-11-21 23:21     ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtxf6cwcx.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=14646@debbugs.gnu.org \
    --cc=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).