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


Message #8 received at 15234 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Jambunathan K <kjambunathan <at> gmail.com>, 15234 <at> debbugs.gnu.org
Subject: RE: bug#15234: 24.3.50; Make C-x u repeatable
Date: Sun, 1 Sep 2013 08:23:28 -0700 (PDT)
> 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)




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

Previous Next


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