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

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

[nongnu] elpa/undo-fu 20c9d6170a 77/82: Cleanup: simplify checks for cle


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu 20c9d6170a 77/82: Cleanup: simplify checks for clearing the checkpoint
Date: Thu, 7 Jul 2022 12:04:56 -0400 (EDT)

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

    Cleanup: simplify checks for clearing the checkpoint
---
 undo-fu.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/undo-fu.el b/undo-fu.el
index c97f357a05..e06d241dfb 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -176,11 +176,13 @@ since in this case `keyboard-quit' cannot be used
 to perform unconstrained undo/redo actions."
   (interactive)
   ;; Display an appropriate message.
-  (if (undo-fu--was-undo-or-redo)
-    (if (and undo-fu--respect)
-      (message "Undo checkpoint cleared!")
+  (cond
+    ((not (undo-fu--was-undo-or-redo))
+      (message "Undo checkpoint disabled for next undo action!"))
+    ((not undo-fu--respect)
       (message "Undo checkpoint already cleared!"))
-    (message "Undo checkpoint disabled for next undo action!"))
+    (t
+      (message "Undo checkpoint cleared!")))
 
   (undo-fu--checkpoint-disable))
 



reply via email to

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