GNU bug report logs - #12283
24.1; M-x undo-only says "Redo!" instead of "Undo!"

Previous Next

Package: emacs;

Reported by: Clark Grubb <clarkgrubb <at> gmail.com>

Date: Sun, 26 Aug 2012 19:04:02 UTC

Severity: minor

Found in version 24.1

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Clark Grubb <clarkgrubb <at> gmail.com>
Cc: 12283 <at> debbugs.gnu.org
Subject: bug#12283: 24.1; M-x undo-only says "Redo!" instead of "Undo!"
Date: Tue, 28 Aug 2012 03:32:12 -0400
If you just want it so say "Undo" instead, that seems easily fixed.
Or was there something else?


*** lisp/simple.el	2012-08-18 05:11:38 +0000
--- lisp/simple.el	2012-08-28 07:28:40 +0000
***************
*** 1887,1895 ****
      ;; so, ask the user whether she wants to skip the redo/undo pair.
      (let ((equiv (gethash pending-undo-list undo-equiv-table)))
        (or (eq (selected-window) (minibuffer-window))
! 	  (setq message (if undo-in-region
! 			    (if equiv "Redo in region!" "Undo in region!")
! 			  (if equiv "Redo!" "Undo!"))))
        (when (and (consp equiv) undo-no-redo)
  	;; The equiv entry might point to another redo record if we have done
  	;; undo-redo-undo-redo-... so skip to the very last equiv.
--- 1887,1896 ----
      ;; so, ask the user whether she wants to skip the redo/undo pair.
      (let ((equiv (gethash pending-undo-list undo-equiv-table)))
        (or (eq (selected-window) (minibuffer-window))
! 	  (setq message (format "%s%s!"
!                                 (if (or undo-no-redo (not equiv))
!                                     "Undo" "Redo")
!                                 (if undo-in-region " in region" ""))))
        (when (and (consp equiv) undo-no-redo)
  	;; The equiv entry might point to another redo record if we have done
  	;; undo-redo-undo-redo-... so skip to the very last equiv.





This bug report was last modified 12 years and 263 days ago.

Previous Next


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