From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#15234: 24.3.50; Make C-x u repeatable Date: Sun, 01 Sep 2013 19:27:42 +0300 Organization: JURTA Message-ID: <877gf0bj7l.fsf@mail.jurta.org> References: <87k3j0bull.fsf@gmail.com> <43f0049b-2988-41e6-be88-709563ccee98@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378053018 25878 80.91.229.3 (1 Sep 2013 16:30:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Sep 2013 16:30:18 +0000 (UTC) Cc: 15234@debbugs.gnu.org, Jambunathan K To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 01 18:30:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGAXb-0000xo-Gl for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2013 18:30:19 +0200 Original-Received: from localhost ([::1]:34690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGAXa-00076j-UN for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2013 12:30:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGAXS-000758-DV for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 12:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGAXM-0002se-Ds for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 12:30:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGAXM-0002rq-Ba for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 12:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VGAXK-0004ss-Dc for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 12:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Sep 2013 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15234 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15234-submit@debbugs.gnu.org id=B15234.137805296118699 (code B ref 15234); Sun, 01 Sep 2013 16:30:02 +0000 Original-Received: (at 15234) by debbugs.gnu.org; 1 Sep 2013 16:29:21 +0000 Original-Received: from localhost ([127.0.0.1]:34976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGAWZ-0004rQ-W6 for submit@debbugs.gnu.org; Sun, 01 Sep 2013 12:29:21 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:59440 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGAWS-0004qz-Ky for 15234@debbugs.gnu.org; Sun, 01 Sep 2013 12:29:13 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 5BF10258B9E935; Sun, 1 Sep 2013 09:29:01 -0700 (PDT) In-Reply-To: <43f0049b-2988-41e6-be88-709563ccee98@default> (Drew Adams's message of "Sun, 1 Sep 2013 08:23:28 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77862 Archived-At: >> Make C-x u repeatable. > > FWIW, this is what I use: > > (defun undo-repeat (arg) You can make any command repeatable more easily with: (advice-add 'undo :after (lambda (delta) (set-temporary-overlay-map (let ((map (make-sparse-keymap))) (define-key map (vector last-command-event) this-command) map))))