[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of where-is-internal

From: Paul W. Rankin
Subject: Re: Use of where-is-internal
Date: Sun, 2 Feb 2020 00:58:23 +1000

> On 26 Jan 2020, at 2:02 am, Stefan Monnier <> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]