[Top][All Lists]

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

Re: keymap.el and its checks

From: Stefan Monnier
Subject: Re: keymap.el and its checks
Date: Mon, 03 Oct 2022 08:50:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov [2022-10-03 09:58:56] wrote:

>> I saw this change from Stefan:
>> 570a11052b * keymap.el: Ease up support for non-`kbd` formats.
>> and thought this would let me write
>> (push repeat-exit-key unread-command-events)
> BTW, repeat-exit-key could support `kbd` format as well after changing
> its customization type to:
>   :type '(choice (const :tag "No special key to exit repeating sequence" nil)
>                  (string :tag "Kbd string that exits repeating sequence")
>                  (key-sequence :tag "Key that exits repeating sequence"))
> This assumes that `key-sequence` can't be a string.

`key-sequence` can definitely be a string.

> After that you could use (key-parse repeat-exit-key) to append it
> to unread-command-events.

`key-parse` returns a ... key-sequence, so it's of no help to Raman's


reply via email to

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