[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keymap.el and its checks
From: |
Juri Linkov |
Subject: |
Re: keymap.el and its checks |
Date: |
Mon, 03 Oct 2022 09:58:56 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
> 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.
After that you could use (key-parse repeat-exit-key) to append it
to unread-command-events.