[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delsel: undo in region should revert to global when region is empty
From: |
Johan Bockgård |
Subject: |
Re: delsel: undo in region should revert to global when region is empty |
Date: |
Tue, 26 Sep 2006 14:18:18 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
"Drew Adams" <address@hidden> writes:
> After the undo for the region is exhausted, it continues to say No
> further undo information. It would be better for undo to continue
> with the global undo
I disagree. However, the following change will make Emacs say "No
further undo information FOR REGION" for this case (as intended).
Ditto when selective undo is invoked through a prefix argument.
--- simple.el 25 Sep 2006 18:31:06 +0200 1.828
+++ simple.el 26 Sep 2006 13:14:14 +0200
@@ -1501,8 +1501,7 @@
then call `undo-more' one or more times to undo them."
(or (listp pending-undo-list)
(error (concat "No further undo information"
- (and transient-mark-mode mark-active
- " for region"))))
+ (and undo-in-region " for region"))))
(let ((undo-in-progress t))
(setq pending-undo-list (primitive-undo n pending-undo-list))
(if (null pending-undo-list)
--
Johan Bockgård