GNU bug report logs - #60980
FR: It would be useful to have a repeat-exit-function for a repeat-map

Previous Next

Package: emacs;

Reported by: Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>

Date: Sat, 21 Jan 2023 08:43:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>
Cc: 60980 <at> debbugs.gnu.org
Subject: bug#60980: FR: It would be useful to have a repeat-exit-function for a repeat-map
Date: Sun, 12 Feb 2023 19:23:30 +0200
> You have addressed my main concern.  You may close the bug.
>
> Some remarks.
>
> 1. You may consider introducing a
>    `repeat-enter/leave-function`---globally, AND per-map--- and plugin
>    the existing `repeat-echo-function` in to that.
>
>    IOW, the "existing" `repeat-echo-function` is a generic enter/leave
>    dispatcher for all `repeat-maps`.
>
> 2. (I believe) introducing an "enter"/"leave" function per-repeat map
>    is a much cleaner approach, and could be put to good use by users.

Thanks for the ideas.  I'll leave this feature request open for some time
to see if we could implement such a global and keymap-local hooks to run
on entering/leaving the repeating sequence.

> FWIW, the video I linked https://github.com/rnchzn/scratch/issues/1 is
> my own take on what `objed` (https://github.com/clemera/objed) does.

The video looks nice, so you may consider creating a new package that
will do something like `objed` does, but with using `repeat-mode`.




This bug report was last modified 2 years and 126 days ago.

Previous Next


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