emacs-devel
[Top][All Lists]
Advanced

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

Re: POLL: make C-x o transient


From: Juri Linkov
Subject: Re: POLL: make C-x o transient
Date: Sat, 06 Feb 2021 21:25:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>>> C-x o C-x z z z C-- C-x z : nine keys pressed, control key pressed and
>>> released three times
>>>
>>> C-x o C-= C-= C-= C-- C-= : seven keys pressed, control key pressed
>>> twice and released pressed only once
>>
>> This needs to be compared also with the last letter typed:
>>
>> C-x o o o o O : six keys pressed, control key pressed once and released
>> pressed once
>
> ... and shift key pressed and released once.

True (unless an unshifted key is bound for going to the previous window).

> ... and possibly pressing C-g to exit the transient keymap.

True (no way to avoid this design flaw).

> That solution has a number of limits:
>
> 1. it is not general, you have to define specific keys for each case
>
> 2. the keys that are bound are not self-inserting anymore, you may have to
> exit the transient keymap manually with C-g
>
> 3. there are even cases where this is not possible to use it, for example,
> how would you repeat C-x C-t?

Either by repeating the last char 'C-t', or using a custom transient keymap
with more keys.

> 4. you cannot freely change the argument between two repetitions

Why not?  C-x o O should be equivalent to C-x o C-- o.



reply via email to

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