unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48472: [FR] A small suggestion for repeat-mode
@ 2021-05-16 20:05 Gustavo Barros
  2021-05-17 21:24 ` Juri Linkov
  0 siblings, 1 reply; 5+ messages in thread
From: Gustavo Barros @ 2021-05-16 20:05 UTC (permalink / raw)
  To: 48472

Hi All,

I've just taken notice of the recently introduced `repeat-mode', in 
`repeat.el', and welcome it.

I haven't yet tried it out, since I'm running on 27.2, but I understand 
what it does, and how.  I'll definitely use it when Emacs 28 comes, 
since I have some commands for which I use current `repeat.el' 
functionality to do something equivalent in my setup, and the new mode 
makes this much more convenient, so thank you (Juri) for adding it.

But I write to give one small suggestion to the mode.  Namely that an 
option be added to make the transient keymap expire after a 
(configurable) timeout.  The idea is that the repeating last key press 
is very handy indeed, but if you happen to stop at a repeatable key, 
stop some "idle" time (thinking, reading, whatever) and then hit the key 
again, it might not be what was actually meant.  In other words, besides 
`repeat-exit-key', some idle time after the last repeatable key may 
serve as a good indicator for breaking the repetition chain.

As far as I can see, this should not be particularly complicated, since 
`set-transient-map' returns an "exit function" which could be stored and 
ran on a timer, as appropriate.  And, of course, it can be optional.

Thanks again for the useful addition.  I'm looking forward to using it 
already.

Best regards,
Gustavo.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-18 22:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 20:05 bug#48472: [FR] A small suggestion for repeat-mode Gustavo Barros
2021-05-17 21:24 ` Juri Linkov
2021-05-18 11:14   ` Gustavo Barros
2021-05-18 21:04     ` Juri Linkov
2021-05-18 22:09       ` Gustavo Barros

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).