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

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

[nongnu] elpa/undo-fu 374a62cba0 08/82: Disable undo-in-region support


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu 374a62cba0 08/82: Disable undo-in-region support
Date: Thu, 7 Jul 2022 12:04:47 -0400 (EDT)

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

    Disable undo-in-region support
    
    Workaround for report #3.
    
    The report contains a suggestion for working around this,
    however this needs to be tested, so disable support for now.
---
 readme.rst | 6 ++++++
 undo-fu.el | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/readme.rst b/readme.rst
index d408a79ed2..0376a89ff5 100644
--- a/readme.rst
+++ b/readme.rst
@@ -75,6 +75,12 @@ Details
   until a new chain of undo/redo events is started.
 
 
+Limitations
+===========
+
+The feature ``undo-in-region`` is currently unsupported.
+
+
 Installation
 ============
 
diff --git a/undo-fu.el b/undo-fu.el
index f807ab82b9..6320638896 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -173,6 +173,9 @@ Optional argument ARG The number of steps to redo."
         (success
           (condition-case err
             (progn
+              ;; 'undo-in-region' unsupported.
+              (when transient-mark-mode
+                (deactivate-mark))
               (undo steps)
               t)
             (error (message "%s" (error-message-string err))))))
@@ -223,6 +226,9 @@ Optional argument ARG the number of steps to undo."
         (success
           (condition-case err
             (progn
+              ;; 'undo-in-region' unsupported.
+              (when transient-mark-mode
+                (deactivate-mark))
               (undo-only steps)
               t)
             (error (message "%s" (error-message-string err))))))



reply via email to

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