[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vundo 81d126cfab 22/58: Fix vundo-stem-root and vundo-s
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vundo 81d126cfab 22/58: Fix vundo-stem-root and vundo-stem-end |
Date: |
Fri, 15 Apr 2022 12:58:13 -0400 (EDT) |
branch: externals/vundo
commit 81d126cfabb2dd91bd779015d41d7ad0ac60aa84
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Fix vundo-stem-root and vundo-stem-end
* vundo.el (vundo-stem-root): Don’t proceed if there is no parent.
(vundo-stem-end): Don’t proceed if there is no child.
---
vundo.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/vundo.el b/vundo.el
index 7a9d96b8f1..11df966f5e 100644
--- a/vundo.el
+++ b/vundo.el
@@ -900,8 +900,10 @@ If ARG < 0, move forward."
"Move to the beginning of the current stem."
(interactive)
(vundo--check-for-command
- (let* ((this (vundo--current-node vundo--prev-mod-list))
- (next (vundo-m-parent this)))
+ (when-let* ((this (vundo--current-node vundo--prev-mod-list))
+ (next (vundo-m-parent this)))
+ ;; If NEXT is nil, ie, this node doesn’t have a parent, do
+ ;; nothing.
(vundo--move-to-node
this next vundo--orig-buffer vundo--prev-mod-list)
(setq this next
@@ -919,8 +921,10 @@ If ARG < 0, move forward."
"Move to the end of the current stem."
(interactive)
(vundo--check-for-command
- (let* ((this (vundo--current-node vundo--prev-mod-list))
- (next (car (vundo-m-children this))))
+ (when-let* ((this (vundo--current-node vundo--prev-mod-list))
+ (next (car (vundo-m-children this))))
+ ;; If NEXT is nil, ie, this node doesn’t have a child, do
+ ;; nothing.
(vundo--move-to-node
this next vundo--orig-buffer vundo--prev-mod-list)
(setq this next
- [elpa] externals/vundo 4b6551748b 06/58: * README.txt: New file., (continued)
- [elpa] externals/vundo 4b6551748b 06/58: * README.txt: New file., ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 4fddb2b004 11/58: Use vundo-glyph-alist, and overlay for highlight, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 3a569de421 15/58: * README.txt (Changelog): Recording breaking change, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 39d80d2093 16/58: * README.txt: Add detail and tips., ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 24f99e54b2 17/58: Fix face definitions, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 928c60747a 20/58: * test/vundo-test.el (vundo-test--setup): Fix test to use Unicode., ELPA Syncer, 2022/04/15
- [elpa] externals/vundo ac37626525 26/58: Fix test, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 8c0ff18e7f 32/58: * README.txt: Reword comparison., ELPA Syncer, 2022/04/15
- [elpa] externals/vundo a66bb05062 35/58: Merge branch 'pr-evil-mode-disable', ELPA Syncer, 2022/04/15
- [elpa] externals/vundo aefb233005 34/58: Fix #9: Disable evil-mode in vundo-mode, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 81d126cfab 22/58: Fix vundo-stem-root and vundo-stem-end,
ELPA Syncer <=
- [elpa] externals/vundo 429e3a2397 23/58: Format fix, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 42c8e4adc1 28/58: Remove nth in vundo--mod-list-from, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 00e5c4e73c 54/58: * vundo.el (vundo-mode): Avoid duplicates in evil-emacs-state-modes., ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 6c15a96fb6 57/58: * test/vundo-test.el (vundo-test--3): Skip this test in batch mode., ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 0e3af84944 47/58: Prepare for publish, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 8067005e53 56/58: Merge branch 'pr-remove-redundant-eqv-list-of', ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 2bb4bc8404 04/58: Fix nodes' face, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo a3e27e84f1 05/58: Add an option that controls the side on which we display vundo window, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo 578a9f6be1 10/58: Update tests to accommodate read-only-ness, ELPA Syncer, 2022/04/15
- [elpa] externals/vundo b996e201d8 12/58: * README.txt: Add notice, ELPA Syncer, 2022/04/15