[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))
- [nongnu] elpa/undo-fu e07fd219a0 74/82: Sync backported functions from Emacs, (continued)
- [nongnu] elpa/undo-fu e07fd219a0 74/82: Sync backported functions from Emacs, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu c92261a3b7 80/82: Cleanup: use with-eval-after-load, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 1baca3da6b 03/82: Lookup key for keyboard-quit instead of hard coding in message, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu cad12914a4 15/82: Add 'undo-fu-allow-undo-in-region' option, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu a0e111b955 21/82: Add .elisp-autofmt to enable auto-formatting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu d561fa8e0c 23/82: Fix #2 Support linear redo, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 459c90479d 24/82: Release 0.2, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 29a8c3d5a8 32/82: Use more prominent comment sections, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu d81063c96d 42/82: Cleanup: remove unnecessary checkpoint-is-blocking variable, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 0ce9ac3614 53/82: Cleanup: use updated auto-formatting results, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 20c9d6170a 77/82: Cleanup: simplify checks for clearing the checkpoint,
ELPA Syncer <=