[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree 50ccefd 043/195: Fixed bug in undo-tree-disca
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree 50ccefd 043/195: Fixed bug in undo-tree-discard-node. |
Date: |
Sat, 28 Nov 2020 13:41:18 -0500 (EST) |
branch: externals/undo-tree
commit 50ccefd96b09748f58fbca546e558f7d97f4dc6e
Author: tsc25 <tsc25@cantab.net>
Commit: tsc25 <tsc25@cantab.net>
Fixed bug in undo-tree-discard-node.
---
undo-tree.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index 502803f..fcac771 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -466,6 +466,7 @@
;; Version 0.1.6
;; * added `undo-tree-mode-lighter' customization option to allow the
;; mode-line lighter to be changed
+;; * bug-fix in `undo-tree-discard-node'
;;
;; Version 0.1.5
;; * modified `undo-tree-visualize' to mark the visualizer window as
@@ -929,7 +930,7 @@ Comparison is done with 'eq."
(+ (undo-list-byte-size (undo-tree-node-undo node))
(undo-list-byte-size (undo-tree-node-redo node))))
- ;; discarding root node
+ ;; discarding root node...
(if (eq node (undo-tree-root buffer-undo-tree))
(cond
;; should always discard branches before root
@@ -938,7 +939,8 @@ Comparison is done with 'eq."
has multiple branches"))
;; don't discard root if current node is only child
((eq (car (undo-tree-node-next node))
- (undo-tree-current buffer-undo-tree)))
+ (undo-tree-current buffer-undo-tree))
+ nil)
(t
;; make child of root into new root
(setf node (setf (undo-tree-root buffer-undo-tree)
@@ -953,7 +955,7 @@ Comparison is done with 'eq."
(undo-tree-oldest-leaf node)
node)))
- ;; discarding leaf node
+ ;; discarding leaf node...
(let* ((parent (undo-tree-node-previous node))
(current (nth (undo-tree-node-branch parent)
(undo-tree-node-next parent))))
- [elpa] externals/undo-tree 4dd6905 028/195: Discard marker adjustment undo entries., (continued)
- [elpa] externals/undo-tree 4dd6905 028/195: Discard marker adjustment undo entries., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 09fb370 027/195: Added lighter to undo-tree-mode., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree b074b86 029/195: Updated commentary, and switched to GPLv3., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree c00c1fe 031/195: Add new undo-tree-kill-visualizer to before-change-functions hook, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree aaa4c6d 012/195: Don't create new marker each time we draw a node., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 159c9b4 005/195: Implemented undo-tree branch switching., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 0bbfa5c 026/195: Tweaked commentary., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 86fb076 034/195: Fixed keybindings., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 948386b 035/195: Modified undo-tree-visualizer-active-branch-face, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bca52bf 042/195: Added undo-tree-mode-lighter customization option, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 50ccefd 043/195: Fixed bug in undo-tree-discard-node.,
Stefan Monnier <=
- [elpa] externals/undo-tree fd3fc5c 046/195: Pass null argument to kill-buffer call in undo-tree-visualizer-quit,, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 45751ef 050/195: Fixed bug in undo-tree-switch-branch., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f454e88 001/195: Started project to add vim-like undo tree handling to emacs., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree b2eab5a 016/195: Made visualizer buffer read-only., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 4877b0f 008/195: Added markers to record positions of nodes in visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 7f3c87d 030/195: Added installation instructions to commentary, and keybinding documentation, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree c8b2659 032/195: Prevented undo-tree-kill-visualizer from killing visualizer when undoing/redoing, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree c041ce8 033/195: Added missing (eval-when-compile (require 'cl)) line., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 3b1a83f 036/195: Fixed undo-tree-visualizer-quit to make it remove kill visualizer hook, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f3fc5cd 037/195: Modified undo-tree-undo/redo to always replace redo/undo entries, Stefan Monnier, 2020/11/28