From unknown Wed Aug 20 06:39:51 2025 X-Loop: don@donarmstrong.com Subject: bug#1417: 23.0.60; defmacro declare syntax trips up on offsets Reply-To: bgoodr@gmail.com, 1417@debbugs.gnu.org Resent-From: Brent Goodrick Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 24 Nov 2008 05:35:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1417 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122750434127774 (code B ref -1); Mon, 24 Nov 2008 05:35:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Nov 2008 05:25:41 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAO5Pbur027768 for ; Sun, 23 Nov 2008 21:25:38 -0800 Received: from mx10.gnu.org ([199.232.76.166]:56826) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L4Twn-0002mI-RH for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 00:25:22 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L4SsI-0001hu-Tg for emacs-pretest-bug@gnu.org; Sun, 23 Nov 2008 23:16:45 -0500 Received: from mail.avenuecable.com ([24.113.32.26]:55331 helo=wavecable.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4K8t-0005YE-3n for emacs-pretest-bug@gnu.org; Sun, 23 Nov 2008 13:57:11 -0500 Received: from [76.14.208.3] (HELO hungover.brentg.com.ewbcable.net) by wavecable.net (CommuniGate Pro SMTP 4.2.8) with ESMTP id 64718426; Sun, 23 Nov 2008 10:46:27 -0800 Date: Sun, 23 Nov 2008 10:57:07 -0800 Message-Id: <87od06w9rw.fsf@hungover.brentg.com> From: Brent Goodrick To: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) I might be doing something wrong with a declare usage in a macro. However, the construct use used to work in Emacs 22, but does not work in Emacs 23. I tried to post this to the #emacs channel, but got no takers (Sun Nov 23 10:51:21 PST 2008). I did verify this with "emacs -q". I am using Emacs built from top of HEAD CVS as of Sun Nov 23 10:28:46 PST 2008 (Xft emacs). Steps to reproduce: 1. Run M-x eval-buffer on the chunk of Elisp code below. 2. Move point into the some-macro-using-function, and invoke C-u M-x edebug-eval-defun (which I think is bound to C-u M-C-x in a emacs -q session). 3. Then do M-x some-macro-using-function, and step through that function and verify no error occurs while stepping with the "n" key binding. 4. Uncomment the "declare" line inside the definition of `some-macro'. 5. Run M-x eval-buffer on this file again to get the new definition of `some-macro'. 6. Repeat step #2 above, but this time notice you get an error similar to: edebug-form: Wrong type argument: number-or-marker-p, ((416 (417 . 421) (422 (422 . 423) (423 . 427) . 427) (428 (428 . 429) (429 . 433) . 433) (434 (434 . 435) (435 . 439) . 439) . 440) . 441) Here is the chunk of Elisp code (in between the "cut here" lines): -- cut here -- (defmacro some-macro (some-directory &rest body-forms) "Bla bla bla. Yada yada yada." ;; (declare (indent 1) (debug sexp body)) `(list 'foo)) (defun some-macro-using-function () "Yacki-yack, yack, yack." (interactive) (some-macro "snickers/are/good/eating" (list 'some 'form 'here))) -- cut here -- In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.11) of 2008-11-23 on hungover Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--with-x-toolkit' '--with-xft' '--prefix=/home/brentg/emacs_from_source/install'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-netsplit-mode: t desktop-save-mode: t iswitchb-mode: t erc-ring-mode: t erc-services-mode: t erc-networks-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t display-time-mode: t shell-dirtrack-mode: t delete-selection-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: 1 transient-mark-mode: t view-mode: t Recent input: s e SPC s y n t a x ? C-x o C-n C-n C-n C-n C-n C-n C-n B C-n C-n M-n C-p C-l C-n C-n C-n C-n C-n C-n C-n C-l C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-l C-x o M-< C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n M-> M-x e m a c s - g b u b u g a p r o b u g C-x o C-x o C-s b u g - C-s C-s C-s C-s C-n C-n M-> C-s e m a c s C-s C-s C-s C-r C-r C-l C-s C-s C-s C-s C-s C-s C-s C-s C-r C-r C-s C-b C-x o C-x o C-n C-x o C-n C-n C-x o C-n C-x o C-n C-x o C-n C-n C-n C-n C-n C-n C-n C-n M-x a p r o r e p o r t . * b u g C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-M-SPC C-z C-h f C-v M-x b C-v Recent messages: Pushed a window configuration. [2 times] Mark saved where search started Pushed a window configuration. [2 times] Mark saved where search started Pushed a window configuration. Type "q" to delete this window. Mark set Renamed transient buffer "*Help*" to "*Help*<3>" Pushed a window configuration. Type "q" to restore this window. From unknown Wed Aug 20 06:39:51 2025 X-Loop: don@donarmstrong.com Subject: bug#1417: 23.0.60; defmacro declare syntax trips up on offsets Reply-To: Stefan Monnier , 1417@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 24 Nov 2008 16:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1417 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12275431264028 (code B ref -1); Mon, 24 Nov 2008 16:20:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Nov 2008 16:12:06 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAOGC2se004017 for ; Mon, 24 Nov 2008 08:12:03 -0800 Received: from mail.gnu.org ([199.232.76.166]:54455 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L4e2M-0001Ae-8v for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 11:11:46 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L4e2a-0004TU-VO for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 11:12:01 -0500 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:2120 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4e2a-0004TP-Az for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 11:12:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEAPJgKknO+J+z/2dsb2JhbACBbc8cgnyBHQ X-IronPort-AV: E=Sophos;i="4.33,660,1220241600"; d="scan'208";a="30228166" Received: from 206-248-159-179.dsl.teksavvy.com (HELO pastel.home) ([206.248.159.179]) by ironport2-out.teksavvy.com with ESMTP; 24 Nov 2008 11:11:59 -0500 Received: by pastel.home (Postfix, from userid 20848) id 6D18E8107; Mon, 24 Nov 2008 11:11:59 -0500 (EST) From: Stefan Monnier To: bgoodr@gmail.com Cc: 1417@debbugs.gnu.org, emacs-pretest-bug@gnu.org Message-ID: References: <87od06w9rw.fsf@hungover.brentg.com> Date: Mon, 24 Nov 2008 11:11:59 -0500 In-Reply-To: <87od06w9rw.fsf@hungover.brentg.com> (Brent Goodrick's message of "Sun, 23 Nov 2008 10:57:07 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 > (defmacro some-macro (some-directory &rest body-forms) > "Bla bla bla. Yada yada yada." > ;; (declare (indent 1) (debug sexp body)) ^^^^^^^^^ (sexp body) So the real bug is that this error is not caught in `macro-declaration-function', and that error messages in Edebug's parsing code are user-unfriendly. Stefan From unknown Wed Aug 20 06:39:51 2025 X-Loop: don@donarmstrong.com Subject: bug#1417: 23.0.60; defmacro declare syntax trips up on offsets Reply-To: "Brent Goodrick" , 1417@debbugs.gnu.org Resent-From: "Brent Goodrick" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 24 Nov 2008 17:45:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1417 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122754820926159 (code B ref -1); Mon, 24 Nov 2008 17:45:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, HTML_MESSAGE,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Nov 2008 17:36:49 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAOHakUO026149 for ; Mon, 24 Nov 2008 09:36:47 -0800 Received: from mx10.gnu.org ([199.232.76.166]:57963) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L4fMM-00040a-6V for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 12:36:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L4fMb-0004r5-1L for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 12:36:45 -0500 Received: from yw-out-1718.google.com ([74.125.46.156]:41747) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4fMa-0004qv-MN for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 12:36:44 -0500 Received: by yw-out-1718.google.com with SMTP id 9so936570ywk.66 for ; Mon, 24 Nov 2008 09:36:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Wh9688DaP2mloPImE5JlUV9uYSm538N6AUPTyVMhk6w=; b=p1Qi57Bnarr8g62X3VGxwAHMFkgxr2YdTvd58jBQjYhnf8SIMsybK8r+LmDlCxA43m pS+oAaLC1q+zvoVtyKNbte/7xEWE8lZlgA1VSY0xIw+56aHZdAd2cJDpzjSzz7OucGUA EOziQmn+Y9p3CDTf3i+vNGPKG7zJimWo6BcaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=rPs8ajKCtt7/VKDF9ND3qdZ5UonbiSJU7AizjwK3aW86QhTUHZC5UbYcupaLRBXlzx JsN/2cj46re/VGqId+dzCR5nfOTTJzTcZrfNyMaXMc9KyEXZ8tMsb2LYVtmg4t5v/Zlh 9LzdDR62UmgDmIqYBD2dpiBvnaRPgurZSDRNI= Received: by 10.90.63.7 with SMTP id l7mr2276992aga.39.1227548203236; Mon, 24 Nov 2008 09:36:43 -0800 (PST) Received: by 10.90.103.19 with HTTP; Mon, 24 Nov 2008 09:36:43 -0800 (PST) Message-ID: Date: Mon, 24 Nov 2008 09:36:43 -0800 From: "Brent Goodrick" To: "Stefan Monnier" Cc: 1417@debbugs.gnu.org, emacs-pretest-bug@gnu.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_49599_30576564.1227548203251" References: <87od06w9rw.fsf@hungover.brentg.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-CrossAssassin-Score: 2 ------=_Part_49599_30576564.1227548203251 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Agreed. As a "rider clause" to this bug: the debug specification does not seem to show up in the Elisp Info manual at all. Thanks Stefan. On Mon, Nov 24, 2008 at 8:11 AM, Stefan Monnier wrote: > > (defmacro some-macro (some-directory &rest body-forms) > > "Bla bla bla. Yada yada yada." > > ;; (declare (indent 1) (debug sexp body)) > ^^^^^^^^^ > (sexp body) > > So the real bug is that this error is not caught in > `macro-declaration-function', and that error messages in Edebug's > parsing code are user-unfriendly. > > > Stefan > ------=_Part_49599_30576564.1227548203251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Agreed.  As a "rider clause" to this bug: the debug specification does not seem to show up in the Elisp Info manual at all.

Thanks Stefan.

On Mon, Nov 24, 2008 at 8:11 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> (defmacro some-macro (some-directory &rest body-forms)
>   "Bla bla bla. Yada yada yada."
>   ;; (declare (indent 1) (debug sexp body))
                                 ^^^^^^^^^
                                (sexp body)

So the real bug is that this error is not caught in
`macro-declaration-function', and that error messages in Edebug's
parsing code are user-unfriendly.


       Stefan

------=_Part_49599_30576564.1227548203251-- From unknown Wed Aug 20 06:39:51 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: bgoodr@gmail.com Subject: bug#1417 closed by Chong Yidong (Re: bug#1417: 23.0.60; defmacro declare syntax trips up on offsets) Message-ID: References: <87ljv1diic.fsf@cyd.mit.edu> <87od06w9rw.fsf@hungover.brentg.com> X-Emacs-PR-Message: they-closed 1417 X-Emacs-PR-Package: emacs Reply-To: 1417@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1228014604-25720-1" This is a multi-part message in MIME format... ------------=_1228014604-25720-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1417: 23.0.60; defmacro declare syntax trips up on offsets It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1417: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1417 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1228014604-25720-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Sat Nov 29 19:01:33 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1417-done) by emacsbugs.donarmstrong.com; 30 Nov 2008 03:01:33 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAU31UAx023675 for <1417-done@emacsbugs.donarmstrong.com>; Sat, 29 Nov 2008 19:01:31 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 2AC6357E09E; Sat, 29 Nov 2008 22:01:31 -0500 (EST) From: Chong Yidong To: Brent Goodrick Cc: Stefan Monnier , 1417-done@debbugs.gnu.org Subject: Re: bug#1417: 23.0.60; defmacro declare syntax trips up on offsets Date: Sat, 29 Nov 2008 22:01:31 -0500 Message-ID: <87ljv1diic.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've checked in a fix to make `macro-declaration-function' complain on such problematic declarations. ------------=_1228014604-25720-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From bgoodr@gmail.com Sun Nov 23 21:25:41 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Nov 2008 05:25:41 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAO5Pbur027768 for ; Sun, 23 Nov 2008 21:25:38 -0800 Received: from mx10.gnu.org ([199.232.76.166]:56826) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L4Twn-0002mI-RH for emacs-pretest-bug@gnu.org; Mon, 24 Nov 2008 00:25:22 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L4SsI-0001hu-Tg for emacs-pretest-bug@gnu.org; Sun, 23 Nov 2008 23:16:45 -0500 Received: from mail.avenuecable.com ([24.113.32.26]:55331 helo=wavecable.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4K8t-0005YE-3n for emacs-pretest-bug@gnu.org; Sun, 23 Nov 2008 13:57:11 -0500 Received: from [76.14.208.3] (HELO hungover.brentg.com.ewbcable.net) by wavecable.net (CommuniGate Pro SMTP 4.2.8) with ESMTP id 64718426; Sun, 23 Nov 2008 10:46:27 -0800 Date: Sun, 23 Nov 2008 10:57:07 -0800 Message-Id: <87od06w9rw.fsf@hungover.brentg.com> From: Brent Goodrick To: emacs-pretest-bug@gnu.org Subject: 23.0.60; defmacro declare syntax trips up on offsets Reply-to: bgoodr@gmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) I might be doing something wrong with a declare usage in a macro. However, the construct use used to work in Emacs 22, but does not work in Emacs 23. I tried to post this to the #emacs channel, but got no takers (Sun Nov 23 10:51:21 PST 2008). I did verify this with "emacs -q". I am using Emacs built from top of HEAD CVS as of Sun Nov 23 10:28:46 PST 2008 (Xft emacs). Steps to reproduce: 1. Run M-x eval-buffer on the chunk of Elisp code below. 2. Move point into the some-macro-using-function, and invoke C-u M-x edebug-eval-defun (which I think is bound to C-u M-C-x in a emacs -q session). 3. Then do M-x some-macro-using-function, and step through that function and verify no error occurs while stepping with the "n" key binding. 4. Uncomment the "declare" line inside the definition of `some-macro'. 5. Run M-x eval-buffer on this file again to get the new definition of `some-macro'. 6. Repeat step #2 above, but this time notice you get an error similar to: edebug-form: Wrong type argument: number-or-marker-p, ((416 (417 . 421) (422 (422 . 423) (423 . 427) . 427) (428 (428 . 429) (429 . 433) . 433) (434 (434 . 435) (435 . 439) . 439) . 440) . 441) Here is the chunk of Elisp code (in between the "cut here" lines): -- cut here -- (defmacro some-macro (some-directory &rest body-forms) "Bla bla bla. Yada yada yada." ;; (declare (indent 1) (debug sexp body)) `(list 'foo)) (defun some-macro-using-function () "Yacki-yack, yack, yack." (interactive) (some-macro "snickers/are/good/eating" (list 'some 'form 'here))) -- cut here -- In GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.11) of 2008-11-23 on hungover Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--with-x-toolkit' '--with-xft' '--prefix=/home/brentg/emacs_from_source/install'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-netsplit-mode: t desktop-save-mode: t iswitchb-mode: t erc-ring-mode: t erc-services-mode: t erc-networks-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t display-time-mode: t shell-dirtrack-mode: t delete-selection-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: 1 transient-mark-mode: t view-mode: t Recent input: s e SPC s y n t a x ? C-x o C-n C-n C-n C-n C-n C-n C-n B C-n C-n M-n C-p C-l C-n C-n C-n C-n C-n C-n C-n C-l C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-l C-x o M-< C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n M-> M-x e m a c s - g b u b u g a p r o b u g C-x o C-x o C-s b u g - C-s C-s C-s C-s C-n C-n M-> C-s e m a c s C-s C-s C-s C-r C-r C-l C-s C-s C-s C-s C-s C-s C-s C-s C-r C-r C-s C-b C-x o C-x o C-n C-x o C-n C-n C-x o C-n C-x o C-n C-x o C-n C-n C-n C-n C-n C-n C-n C-n M-x a p r o r e p o r t . * b u g C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-M-SPC C-z C-h f C-v M-x b C-v Recent messages: Pushed a window configuration. [2 times] Mark saved where search started Pushed a window configuration. [2 times] Mark saved where search started Pushed a window configuration. Type "q" to delete this window. Mark set Renamed transient buffer "*Help*" to "*Help*<3>" Pushed a window configuration. Type "q" to restore this window. ------------=_1228014604-25720-1--