[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59539: 29.0.50; Commands created with `insert-kbd-macro` are NOT get
From: |
Juri Linkov |
Subject: |
bug#59539: 29.0.50; Commands created with `insert-kbd-macro` are NOT getting repeated. |
Date: |
Sat, 17 Dec 2022 19:20:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> Do you have an idea how to do the right thing and to guess the user's
>> intention without checking if there are the same keys in the keymap?
>
> I guess it should be possible to find out what the 'original' key
> pressed was. <time passes> How about the below? I guess it changes the
> behaviour when you have a command bound to two keys in the same repeat
> map, and you use the 'wrong' one to repeat
I tested your patch, but then 'C-_' starts the key sequence
'C-_ u u u', whereas we had the users' requests that only 'C-x u'
should start the repeatable sequence by default with 'C-x u u u'.
> (but I could argue that people creating such keymaps should use the
> 'repeat-check-key' property)
For more fine-grained control than 'repeat-check-key', we could support
more properties, for example, define separately only keys that enter
the repeatable sequence, or keys that exit it:
(put 'undo 'repeat-enter-keys '([?\C-x ?u]))
(put 'undo 'repeat-exit-keys '([?\C-_]))