diff options
| author | Glenn Morris | 2012-09-01 17:56:03 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-09-01 17:56:03 -0700 |
| commit | d67d3afd3a4ebe1c879ac7f3f8287b274b18d3ad (patch) | |
| tree | 09eacbaf02c48d35270c885c2dcfa37be1204ff7 | |
| parent | 69678719ec1e25b3c102db8b78525f29fd5c1b48 (diff) | |
| download | emacs-d67d3afd3a4ebe1c879ac7f3f8287b274b18d3ad.tar.gz emacs-d67d3afd3a4ebe1c879ac7f3f8287b274b18d3ad.zip | |
* lisp/simple.el (undo): Tweak message in undo-only case.
Fixes: debbugs:12283
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 42dda8f9e49..e849b7c02a8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * simple.el (undo): Tweak message in undo-only case. (Bug#12283) | ||
| 4 | |||
| 1 | 2012-09-01 Glenn Morris <rgm@gnu.org> | 5 | 2012-09-01 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * term.el: Tidy up menu definitions. | 7 | * term.el: Tidy up menu definitions. |
diff --git a/lisp/simple.el b/lisp/simple.el index 51eb572dc5c..b7a24f4f970 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1886,9 +1886,10 @@ as an argument limits undo to changes within the current region." | |||
| 1886 | ;; so, ask the user whether she wants to skip the redo/undo pair. | 1886 | ;; so, ask the user whether she wants to skip the redo/undo pair. |
| 1887 | (let ((equiv (gethash pending-undo-list undo-equiv-table))) | 1887 | (let ((equiv (gethash pending-undo-list undo-equiv-table))) |
| 1888 | (or (eq (selected-window) (minibuffer-window)) | 1888 | (or (eq (selected-window) (minibuffer-window)) |
| 1889 | (setq message (if undo-in-region | 1889 | (setq message (format "%s%s!" |
| 1890 | (if equiv "Redo in region!" "Undo in region!") | 1890 | (if (or undo-no-redo (not equiv)) |
| 1891 | (if equiv "Redo!" "Undo!")))) | 1891 | "Undo" "Redo") |
| 1892 | (if undo-in-region " in region" "")))) | ||
| 1892 | (when (and (consp equiv) undo-no-redo) | 1893 | (when (and (consp equiv) undo-no-redo) |
| 1893 | ;; The equiv entry might point to another redo record if we have done | 1894 | ;; The equiv entry might point to another redo record if we have done |
| 1894 | ;; undo-redo-undo-redo-... so skip to the very last equiv. | 1895 | ;; undo-redo-undo-redo-... so skip to the very last equiv. |