emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/undo-fu ea41b40601 54/82: Use 'undo' instead of 'undo-only


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu ea41b40601 54/82: Use 'undo' instead of 'undo-only' when unconstrained mode is in use
Date: Thu, 7 Jul 2022 12:04:53 -0400 (EDT)

branch: elpa/undo-fu
commit ea41b40601e44409a0e1ee138fab628952cdae4c
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Use 'undo' instead of 'undo-only' when unconstrained mode is in use
---
 changelog.rst | 2 ++
 undo-fu.el    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/changelog.rst b/changelog.rst
index 0bd9d09ece..bf33687479 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -5,6 +5,8 @@ Change Log
 
 - In development
 
+  - Undo in *unconstrained* mode no longer uses ``undo-only``,
+    matching redo behavior.
   - Raise an error when using undo commands when undo has been disabled for 
the buffer.
     *(was failing to set the checkpoint in this case).*
 
diff --git a/undo-fu.el b/undo-fu.el
index 7ee70aec8d..a9ded87138 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -406,7 +406,7 @@ Optional argument ARG the number of steps to undo."
                 (if undo-fu--respect
                   ""
                   " (unconstrained)")
-                (if undo-fu--in-region
+                (if (or (not undo-fu--respect) undo-fu--in-region)
                   (undo steps)
                   (undo-only steps)))
               t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]