GNU bug report logs -
#79864
Bug in EMACS 30.2 / Will not run macro saved in .emacs file
Previous Next
To reply to this bug, email your comments to 79864 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79864; Package
emacs.
(Wed, 19 Nov 2025 22:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lawrence Lawson Maley <cablemapping <at> aol.com>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Wed, 19 Nov 2025 22:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
11-19-2025 ... Dear Emacs,
I think I have discovered a bug in version 30.2. I could not find a
mention of this in reported bugs.
I created a macro in EMACS, saved and named it. (I have done this many
times)
I tested the macro and it worked as expected.
I inserted it into my .emacs file as usual.
(defalias 'doit
(kmacro "C-c C-p C-x o C-x 1 C-x 2 C-x ^ C-x ^ C-x ^ C-x ^ C-x ^ C-x
^ C-x ^ C-x ^ C-x o C-x b p y t h o n <return> C-x o"))
I restarted EMACS and was unable to run the macro.
I installed EMACS 29 and everything worked normally.
Thank you for your time,
Larry Maley
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79864; Package
emacs.
(Thu, 20 Nov 2025 06:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 79864 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 19 Nov 2025 13:35:54 -0800
> From: Lawrence Lawson Maley via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> I think I have discovered a bug in version 30.2. I could not find a
> mention of this in reported bugs.
>
> I created a macro in EMACS, saved and named it. (I have done this many
> times)
>
> I tested the macro and it worked as expected.
>
> I inserted it into my .emacs file as usual.
>
> (defalias 'doit
> (kmacro "C-c C-p C-x o C-x 1 C-x 2 C-x ^ C-x ^ C-x ^ C-x ^ C-x ^ C-x
> ^ C-x ^ C-x ^ C-x o C-x b p y t h o n <return> C-x o"))
>
> I restarted EMACS and was unable to run the macro.
>
> I installed EMACS 29 and everything worked normally.
Thanks.
Please tell more details about the following two aspects of the issue:
. what exactly does "was unable to run the macro" mean? what
happened when you tried to run it?
. what preliminary steps are needed to run the macro? since the
macro invokes quite a few commands, each of which could signal an
error (which then aborts the macro), how to prepare an "emacs -Q"
session for running the macro? for example, I guess we need more
than one window, some command bound to "C-c C-p", etc. -- please
describe these preliminary steps in detail, so someone could try
reproducing what you do
If I put the defalias you show in an otherwise empty ~/.emacs, start
Emacs 30.2, and then type "M-x doit RET", I get:
After 0 kbd macro iterations: execute-kbd-macro: Keyboard macro terminated by a command ringing the bell
This tells me that some command in the macro signaled an error, and
that terminated the macro. But since the macro invokes commands that
need some prerequisites to work, I'm not sure I reproduced correctly
what happens in your case.
I tried starting Emacs 29.3 with the same .emacs file, and the result
was identical: the same error message due to some command signaling an
error.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79864; Package
emacs.
(Sat, 06 Dec 2025 10:23:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 79864 <at> debbugs.gnu.org (full text, mbox):
Ping! Lawrence, could you please answer my questions below, so we
could make progress with this issue?
> Cc: 79864 <at> debbugs.gnu.org
> Date: Thu, 20 Nov 2025 08:25:41 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > Date: Wed, 19 Nov 2025 13:35:54 -0800
> > From: Lawrence Lawson Maley via "Bug reports for GNU Emacs,
> > the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >
> > I think I have discovered a bug in version 30.2. I could not find a
> > mention of this in reported bugs.
> >
> > I created a macro in EMACS, saved and named it. (I have done this many
> > times)
> >
> > I tested the macro and it worked as expected.
> >
> > I inserted it into my .emacs file as usual.
> >
> > (defalias 'doit
> > (kmacro "C-c C-p C-x o C-x 1 C-x 2 C-x ^ C-x ^ C-x ^ C-x ^ C-x ^ C-x
> > ^ C-x ^ C-x ^ C-x o C-x b p y t h o n <return> C-x o"))
> >
> > I restarted EMACS and was unable to run the macro.
> >
> > I installed EMACS 29 and everything worked normally.
>
> Thanks.
>
> Please tell more details about the following two aspects of the issue:
>
> . what exactly does "was unable to run the macro" mean? what
> happened when you tried to run it?
> . what preliminary steps are needed to run the macro? since the
> macro invokes quite a few commands, each of which could signal an
> error (which then aborts the macro), how to prepare an "emacs -Q"
> session for running the macro? for example, I guess we need more
> than one window, some command bound to "C-c C-p", etc. -- please
> describe these preliminary steps in detail, so someone could try
> reproducing what you do
>
> If I put the defalias you show in an otherwise empty ~/.emacs, start
> Emacs 30.2, and then type "M-x doit RET", I get:
>
> After 0 kbd macro iterations: execute-kbd-macro: Keyboard macro terminated by a command ringing the bell
>
> This tells me that some command in the macro signaled an error, and
> that terminated the macro. But since the macro invokes commands that
> need some prerequisites to work, I'm not sure I reproduced correctly
> what happens in your case.
>
> I tried starting Emacs 29.3 with the same .emacs file, and the result
> was identical: the same error message due to some command signaling an
> error.
>
>
>
>
This bug report was last modified 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.