[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree 08db836 123/195: Fix bug in undo-tree-visuali
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree 08db836 123/195: Fix bug in undo-tree-visualizer-select-left/right. |
Date: |
Sat, 28 Nov 2020 13:41:35 -0500 (EST) |
branch: externals/undo-tree
commit 08db83640661720b8a68d6e27e901de121667962
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Fix bug in undo-tree-visualizer-select-left/right.
---
undo-tree.el | 40 ++++++++++++++++++----------------------
1 file changed, 18 insertions(+), 22 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index 2db9bcd..1c0df9a 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -727,7 +727,7 @@
(require 'diff)
-
+
;;; =====================================================================
;;; Compatibility hacks for older Emacsen
@@ -819,7 +819,7 @@
-
+
;;; =====================================================================
;;; Global variables and customization options
@@ -998,17 +998,13 @@ in visualizer."
(add-to-list 'debug-ignored-errors "^No further redo information")
-
-
-;;; =================================================================
-;;; Install history-auto-save hooks
-
+;; Install history-auto-save hooks
(add-hook 'write-file-functions 'undo-tree-save-history-hook)
(add-hook 'find-file-hook 'undo-tree-load-history-hook)
-
+
;;; =================================================================
;;; Setup default keymaps
@@ -1141,7 +1137,7 @@ in visualizer."
-
+
;;; =====================================================================
;;; Undo-tree data structure
@@ -1372,7 +1368,7 @@ in visualizer."
-
+
;;; =====================================================================
;;; Basic undo-tree data structure functions
@@ -1501,7 +1497,7 @@ Comparison is done with `eq'."
-
+
;;; =====================================================================
;;; Utility functions for handling `buffer-undo-list' and changesets
@@ -1708,7 +1704,7 @@ Comparison is done with `eq'."
-
+
;;; =====================================================================
;;; History discarding functions
@@ -1875,7 +1871,7 @@ which is defined in the `warnings' library.\n")
-
+
;;; =====================================================================
;;; Visualizer-related functions
@@ -1975,7 +1971,7 @@ which is defined in the `warnings' library.\n")
-
+
;;; =====================================================================
;;; Undo-in-region functions
@@ -2469,7 +2465,7 @@ of either NODE itself or some node above it in the tree."
-
+
;;; =====================================================================
;;; Undo-tree commands
@@ -2879,7 +2875,7 @@ Argument is a character, naming the register."
-
+
;;; =====================================================================
;;; Persistent storage
@@ -3022,7 +3018,7 @@ signaling an error if file is not found."
-
+
;;; =====================================================================
;;; Undo-tree visualizer
@@ -3401,7 +3397,7 @@ signaling an error if file is not found."
-
+
;;; =====================================================================
;;; Visualizer mode commands
@@ -3569,7 +3565,7 @@ at mouse event POS."
-
+
;;; =====================================================================
;;; Visualizer selection mode
@@ -3639,7 +3635,7 @@ at mouse event POS."
(when (and undo-tree-visualizer-diff node
(not (eq node undo-tree-visualizer-selected-node)))
(undo-tree-visualizer-update-diff node))
- (setq undo-tree-visualizer-selected-node node)))
+ (when node (setq undo-tree-visualizer-selected-node node))))
(defun undo-tree-visualizer-select-left (&optional arg)
@@ -3660,10 +3656,10 @@ at mouse event POS."
(when (and undo-tree-visualizer-diff node
(not (eq node undo-tree-visualizer-selected-node)))
(undo-tree-visualizer-update-diff node))
- (setq undo-tree-visualizer-selected-node node)))
-
+ (when node (setq undo-tree-visualizer-selected-node node))))
+
;;; =====================================================================
;;; Visualizer diff display
- [elpa] externals/undo-tree b42fe10 076/195: Fixed bug in undo-list-transfer-to-tree., (continued)
- [elpa] externals/undo-tree b42fe10 076/195: Fixed bug in undo-list-transfer-to-tree., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 897f2ff 089/195: Let-bind inhibit-read-only instead of setting and restoring buffer-read-only., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree adca566 094/195: Allow undo-tree-visualizer-diff variable to be customized., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree da54994 117/195: When discarding root, erase previous link of new root., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 4c6280b 101/195: Fixed bug preventing registers being displayed in visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 3ab4581 107/195: Avoid error if point was moved manually in visualizer selection mode, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 824b904 129/195: Preparatory changes for lazy tree drawing., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 40c7065 108/195: Added undo-tree-visualizer-abort command, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 107d4c8 102/195: Allow visualizer to display relative timestamps., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 1561d8f 099/195: Preserve timestamps when generating diff for visualizer diff view., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 08db836 123/195: Fix bug in undo-tree-visualizer-select-left/right.,
Stefan Monnier <=
- [elpa] externals/undo-tree 6e5cc0f 104/195: Generate history save filename using a function, to allow customization., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 17568c3 113/195: Allow undo history save directory to be customized., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 965650c 127/195: Highlight node in visualizer corresponding to unmodified buffer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree ca9ec7b 105/195: Clear visualizer data / kill visualizer before saving history., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 270bc25 110/195: Added `~' to end of default history save-file name., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree d5a6148 120/195: Don't try to auto-save undo history if undo is disabled in buffer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree cfc036a 133/195: Fix undo-tree-redo to avoid corrupting undo-tree state if redoing fails., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bdfd73f 132/195: Ignore bogus buffer modification entries in undo changesets., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 6e0775d 139/195: Use define-derived-mode and define-minor-mode for undo-tree visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree d6fa2e7 152/195: Reinstate accidentally deleted file header., Stefan Monnier, 2020/11/28