[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/undo-fu afa5685743 39/82: Cleanup: minor improvements to c
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/undo-fu afa5685743 39/82: Cleanup: minor improvements to comments and error strings |
Date: |
Thu, 7 Jul 2022 12:04:52 -0400 (EDT) |
branch: elpa/undo-fu
commit afa5685743478f70bf2dd2cd709229f1a2913534
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: minor improvements to comments and error strings
---
undo-fu.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/undo-fu.el b/undo-fu.el
index 8fe4057fdc..0cfa15486f 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -28,8 +28,8 @@
;; The redo operation can be accessed from a key binding
;; and stops redoing once the initial undo action is reached.
;;
-;; If you want to cross the initial undo step to access
-;; the full history, running (keyboard-quit) typically C-g.
+;; If you want to cross the initial undo boundary to access
+;; the full history, running [keyboard-quit] (typically C-g).
;; lets you continue redoing for functionality not typically
;; accessible with regular undo/redo.
;;
@@ -157,7 +157,7 @@ Returns the number of steps to reach this list or
COUNT-LIMIT."
wraps the `undo' function."
(interactive "*")
(unless undo-fu--checkpoint
- (user-error "Redo end-point not found!"))
+ (user-error "Redo checkpoint not found!"))
(undo-fu--with-message-suffix " All" (undo-fu-only-redo
most-positive-fixnum)))
@@ -194,7 +194,8 @@ Optional argument ARG The number of steps to redo."
(deactivate-mark)))
;; Allow crossing the boundary, if we press [keyboard-quit].
- ;; This allows explicitly over-stepping the boundary, in cases where it's
needed.
+ ;; This allows explicitly over-stepping the boundary,
+ ;; in cases when users want to bypass this constraint.
(when undo-fu--respect
(when (string-equal last-command 'keyboard-quit)
(undo-fu--checkpoint-disable)
@@ -221,7 +222,7 @@ Optional argument ARG The number of steps to redo."
(substitute-command-keys "\\[keyboard-quit]")))
(when undo-fu--respect
- ;; Implement "linear" undo.
+ ;; Implement "linear" redo.
;; So undo/redo chains before the undo checkpoint never redo an undo
step.
;;
;; Without this, redo is still usable, it's just that after
undo,redo,undo, ...
@@ -250,8 +251,8 @@ Optional argument ARG The number of steps to redo."
(let*
(
- ;; Important to clamp before assigning 'last-command'
- ;; since it's used when checking the available steps.
+ ;; It's important to clamp the number of steps before assigning
+ ;; 'last-command' since it's used when checking the available steps.
(steps
(if (numberp arg)
(if (and undo-fu--respect undo-fu--checkpoint)
- [nongnu] elpa/undo-fu 7cbc3f852b 63/82: readme: move details into own top-level heading, (continued)
- [nongnu] elpa/undo-fu 7cbc3f852b 63/82: readme: move details into own top-level heading, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu e0ad06b5ef 64/82: Cleanup: formatting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 1d60424680 50/82: Raise error when using undo-fu commands when undo has been disabled, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 06b52a11d9 69/82: Cleanup: replace 'if' with 'cond', ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 3ae95e60f6 65/82: Update readme example, remove call to disable undo-tree, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 3957d8d188 79/82: Cleanup: replace member with memq, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu fdd806d95c 13/82: Cleanup: make a function to disable the checkpoint, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu ed5af4d0ff 18/82: Merge branch 'add-autoload-cookie' into 'master', ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 61d6cda0a0 35/82: Cleanup: add checkpoint set/clear functions, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu e3e6750c95 37/82: readme: update to reference other packages, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu afa5685743 39/82: Cleanup: minor improvements to comments and error strings,
ELPA Syncer <=
- [nongnu] elpa/undo-fu d5dd79c454 40/82: readme: add link to melpa, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu ea41b40601 54/82: Use 'undo' instead of 'undo-only' when unconstrained mode is in use, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 7fc9505561 61/82: Update evil-mode section in readme, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 8c461a00a0 51/82: Cleanup: comments, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 34b27c01da 66/82: Cleanup: use constant instead of local-variable for command list, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 7ec3cc558e 68/82: Cleanup: use defgroup, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 71c474e29f 71/82: Cleanup: docstring, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu a2241d3b52 76/82: Cleanup: simplify unconstrained undo checks, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu d26b64530a 02/82: Support undo/redo multiple times, ELPA Syncer, 2022/07/07
- [nongnu] elpa/undo-fu 374a62cba0 08/82: Disable undo-in-region support, ELPA Syncer, 2022/07/07