branch: elpa/undo-fu
commit 374a62cba027cd0b8e13323d91ba61481d4f88d3
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
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))))))