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: Gregory Heytings
Subject: Re: POLL: make C-x o transient
Date: Tue, 02 Feb 2021 21:11:28 +0000



Gregory suggested "C-=" as a potential binding with the benefit that it falls right next to "C--" for inverting, on US/UK keyboard layouts.


My C-= suggestion was not for transient keymaps, it was for the global map. Using C-= in transient keymaps does not make sense, as RMS said.


(There is a parallel discussion about binding "C-=" to #'repeat at the top level, which is interesting but has some logistical issues, and is a separate proproal.)


It is not a parallel discussion, it is an attempt to solve the OP's problem in a different, more general, and IMO simpler, way. In short, the two competing approaches to solve the OP's problem are:

1. For each command that should become repeatable, define a transient keymap that is activated when the command has completed, with keys to repeat that command or its "opposite". Which keys should be used for that purpose is not clear: the last key and its shifted version (for example "o" and "O"), or "." and ",", or the last key its corresponding opposite command key (for example "n" and "p" after "M-g"), or...

2. Create a unified way to repeat the last command with its argument (à la "." command in Vi), by binding the existing "repeat" command to a single key binding, for example "C-=". With this it also becomes possible to change the argument between two repetitions, possibly to something different than "opposite". No command must be changed.
reply via email to

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