From: Eduardo Ochs <eduardoochs@gmail.com>
To: Okamsn <okamsn@protonmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get keyboard macro that was just run?
Date: Sun, 18 Jun 2023 12:53:59 -0300 [thread overview]
Message-ID: <CADs++6gQkdAxugEcEw+AixzMmxrQaJarBCjBYj_xv8sXY=Pi+w@mail.gmail.com> (raw)
In-Reply-To: <955be829-a167-2805-5255-c2b848d30583@protonmail.com>
Hi Okamsn,
try to run this with C-x C-e:
(insert (format "\n\%S\n"
`(setq last-kbd-macro (kbd ,(format-kbd-macro last-kbd-macro)))))
it's roughly the trick that I use to save and edit keyboard macros,
but stripped out of all the cruft...
Cheers,
Eduardo Ochs
http://anggtwu.net/#eev
On Sun, 18 Jun 2023 at 11:30, Okamsn <okamsn@protonmail.com> wrote:
>
> Hello,
>
> The package Meow has commands to play back a keyboard macro at multiple
> locations, but these commands are limited to running the last defined
> keyboard macro.
>
> I am wondering whether there is a way that it could play back the
> keyboard macro that was just run for the other locations by hooking into
> or advising some feature. My hope is that it would then be able to work
> automatically with commands like `consult-kmacro`, which allows one to
> run a keyboard macro by selecting it using completion, without first
> having to rotate the `kmacro-ring`.
>
> I have tried checking the value of `executing-kbd-macro` in
> `kbd-macro-termination-hook`, but the value was nil.
>
> Does Emacs make this information available?
>
> Thank you.
>
>
next prev parent reply other threads:[~2023-06-18 15:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-18 14:28 How to get keyboard macro that was just run? Okamsn
2023-06-18 15:53 ` Eduardo Ochs [this message]
2023-06-18 17:05 ` Okamsn
2023-06-18 17:13 ` [External] : " Drew Adams
2023-06-18 17:50 ` Okamsn
2023-07-01 21:07 ` Okamsn
2023-06-18 17:13 ` Okamsn
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='CADs++6gQkdAxugEcEw+AixzMmxrQaJarBCjBYj_xv8sXY=Pi+w@mail.gmail.com' \
--to=eduardoochs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=okamsn@protonmail.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.
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).