From: "Nicolas P. Rougier (inria)" <nicolas.rougier@inria.fr>
To: Augusto Stoffel <arstoffel@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: call-interactively behavior
Date: Sat, 11 Mar 2023 12:12:47 +0100 [thread overview]
Message-ID: <m17cvnk03i.fsf@inria.fr> (raw)
In-Reply-To: <87zg8jpnkb.fsf@gmail.com>
Augusto Stoffel [2023-03-11 at 11:52] wrote:
> I suppose you want to use `execute-kbd-macro'?
Thank for the suggestion, but documentation indicates:
The buffer shown in the currently selected window will be made the
current
buffer before the macro is executed.
such that I'm unable to send the "TAB" to the right buffer.
Having looked more closely at the hippie-expand code, it tests
explicitely last-command vs this-command to continue the cycle or
not. I think I need to do something like:
#+begin_src
(let ((command (key-binding (kbd "TAB"))))
(command-execute command t)
(setq this-command command)
(setq last-command command)
#+end_src
Nicolas
--
Nicolas P. Rougier —— www.labri.fr/perso/nrougier
Institute of Neurodegenerative Diseases, Bordeaux
prev parent reply other threads:[~2023-03-11 11:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-10 6:38 call-interactively behavior Nicolas P. Rougier (inria)
2023-03-10 18:16 ` Nicolas P. Rougier (inria)
2023-03-11 10:52 ` Augusto Stoffel
2023-03-11 11:12 ` Nicolas P. Rougier (inria) [this message]
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=m17cvnk03i.fsf@inria.fr \
--to=nicolas.rougier@inria.fr \
--cc=arstoffel@gmail.com \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).