GNU bug report logs - #48472
[FR] A small suggestion for repeat-mode

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Sun, 16 May 2021 20:07:01 UTC

Severity: wishlist

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Gustavo Barros <gusbrs.2016 <at> gmail.com>
Cc: 48472 <at> debbugs.gnu.org
Subject: bug#48472: [FR] A small suggestion for repeat-mode
Date: Tue, 18 May 2021 00:24:23 +0300
> 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.

Thanks for the suggestion, this is a very good idea.

> 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.

An "exit function" returned by `set-transient-map' is a clever thing,
without such returned function it would be more complicated to implement.
I quickly tried it out, and it works indeed.

> And, of course, it can be optional.

A new user option could be named `repeat-exit-timeout'.




This bug report was last modified 3 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.