all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Okamsn <okamsn@protonmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to get keyboard macro that was just run?
Date: Sun, 18 Jun 2023 14:28:56 +0000	[thread overview]
Message-ID: <955be829-a167-2805-5255-c2b848d30583@protonmail.com> (raw)

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.




             reply	other threads:[~2023-06-18 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-18 14:28 Okamsn [this message]
2023-06-18 15:53 ` How to get keyboard macro that was just run? Eduardo Ochs
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

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

  git send-email \
    --in-reply-to=955be829-a167-2805-5255-c2b848d30583@protonmail.com \
    --to=okamsn@protonmail.com \
    --cc=help-gnu-emacs@gnu.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 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.