GNU bug report logs - #15234
24.3.50; Make C-x u repeatable

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Sun, 1 Sep 2013 12:20:02 UTC

Severity: wishlist

Merged with 12572

Found in versions 24.2.50, 24.3.50

Done: Dani Moncayo <dmoncayo <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 15234 <at> debbugs.gnu.org
Subject: bug#15234: 24.3.50; Make C-x u repeatable
Date: Sun, 01 Sep 2013 21:41:27 +0530
Drew Adams <drew.adams <at> oracle.com> writes:

>> Make C-x u repeatable. 
>
> FWIW, this is what I use:
>
> (defun undo-repeat (arg)
>   "Same as `undo', but repeatable even on a prefix key.
> E.g., if bound to `C-x u' then you can use `C-x u u u...' to repeat."
>   (interactive "*P")
>   (undo arg)
>   (set-temporary-overlay-map (let ((map  (make-sparse-keymap)))
>                                (define-key map "u" 'undo-repeat)
>                                map)))
>
> (global-set-key [remap undo] 'undo-repeat)

I want it right within stock Emacs.  Not in my .emacs, not in a package
floating in wikis.




This bug report was last modified 11 years and 319 days ago.

Previous Next


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