From: "Paul W. Rankin" <hello@paulwrankin.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Use of where-is-internal
Date: Sun, 2 Feb 2020 00:58:23 +1000 [thread overview]
Message-ID: <08DF61A1-C994-4B19-9ACF-6DA9A0245610@paulwrankin.com> (raw)
In-Reply-To: <jwvv9ozmst7.fsf-monnier+emacs@gnu.org>
> On 26 Jan 2020, at 2:02 am, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> (defun other-window-and-beyond (count &optional all-frames)
>> "Select another window in cyclic ordering of windows.
>> Successive pressing `o' calls `other-window'."
>> (interactive "p")
>> (let ((key-vector (where-is-internal this-command
>> overriding-local-map t)))
>
> I think you're looking for `this-single-command-keys`.
> The difference is not just the avoidance of "-internal" but also the
> behavior in case the command is bound to several keys, since you
> probably want to support repeating the same last key that was used to
> run the command rather than repeating "the last key of its first
> keybinding".
Thanks for both replies! I didn't receive this one as I'm not subscribed, but should have checked the archives first.
prev parent reply other threads:[~2020-02-01 14:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-25 6:18 Use of where-is-internal Paul W. Rankin
2020-01-25 16:02 ` Stefan Monnier
2020-02-01 14:58 ` Paul W. Rankin [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=08DF61A1-C994-4B19-9ACF-6DA9A0245610@paulwrankin.com \
--to=hello@paulwrankin.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).