From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25860@debbugs.gnu.org, Paul Eggert <eggert@cs.ucla.edu>,
Tino Calancha <tino.calancha@gmail.com>,
John Wiegley <jwiegley@gmail.com>,
wasserwerk.studio@googlemail.com,
Andreas Schwab <schwab@linux-m68k.org>
Subject: bug#25860: 25.1; Double macro execution
Date: Mon, 27 Feb 2017 12:18:45 -0500 [thread overview]
Message-ID: <CAM-tV-8MV7HM3HFcpB7m8nxSJEp0a-F3NJL0EjDL+fpV8SK4jg@mail.gmail.com> (raw)
In-Reply-To: <83o9xnpqwo.fsf@gnu.org>
On Mon, Feb 27, 2017 at 10:57 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Yes, but that's not the scenario I had in mind. What I had in mind is
> a macro that, when run, will call start-kbd-macro etc. It's clear
> that such a macro cannot be easily defined using F3 and F4, but
> perhaps some ingenious method with using some Lisp data in the
> macro...
C-x ( is bound to kmacro-start-macro which refuses to define a macro
while a macro is executing:
(defun kmacro-start-macro (arg)
...
(if (or defining-kbd-macro executing-kbd-macro)
(message "Already defining keyboard macro.")
...)
I tried making a macro to call M-x start-kbd-macro directly:
<<start-kbd-macro>> ;; start-kbd-macro
zzz ;; self-insert-command * 3
<<end-kbd-macro>> ;; end-kbd-macro
Executing that macro seems to define an empty macro though (i.e., the
"zzz" only gets inserted while running the outer defining macro, but
hitting C-x e after is a nop (apart from the (Type e to repeat macro)
message appearing)). Probably start-kbd-macro should also refuse to
run if a macro is executing as it fails to do anything useful in this
case.
next prev parent reply other threads:[~2017-02-27 17:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 9:23 bug#25860: 25.1; Double macro execution Marek Twardochlib
2017-02-24 14:10 ` Andreas Schwab
2017-02-25 5:41 ` Tino Calancha
2017-02-25 10:10 ` Tino Calancha
2017-02-25 13:27 ` npostavs
2017-02-25 14:48 ` Tino Calancha
2017-02-25 15:26 ` Marek Twardochlib
2017-02-26 5:04 ` Tino Calancha
2017-02-26 7:12 ` npostavs
2017-02-26 15:33 ` Eli Zaretskii
2017-02-26 16:02 ` npostavs
2017-02-27 15:57 ` Eli Zaretskii
2017-02-27 17:18 ` Noam Postavsky [this message]
2017-03-03 14:21 ` Eli Zaretskii
2017-09-29 10:29 ` Marek Twardochlib
2017-09-29 11:41 ` Tino Calancha
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM-tV-8MV7HM3HFcpB7m8nxSJEp0a-F3NJL0EjDL+fpV8SK4jg@mail.gmail.com \
--to=npostavs@users.sourceforge.net \
--cc=25860@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=jwiegley@gmail.com \
--cc=schwab@linux-m68k.org \
--cc=tino.calancha@gmail.com \
--cc=wasserwerk.studio@googlemail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.