[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree 35a438bee8 3/9: Fix how undo-tree-viualizer-t
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree 35a438bee8 3/9: Fix how undo-tree-viualizer-timestamps|diff are set buffer-local. |
Date: |
Sat, 12 Mar 2022 18:02:55 -0500 (EST) |
branch: externals/undo-tree
commit 35a438bee8222247aa1e173456d0fb3fac30994d
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Fix how undo-tree-viualizer-timestamps|diff are set buffer-local.
Major-mode fundctions call `kill-all-local-variables' at start, so these
need
to be made buffer-local *after* setting the major-mode to
undo-tree-visualizer-mode, not before. We now set them buffer-local in
undo-tree-visualizer-mode, which seems the appropriate place.
(Thanks to Martin Joerg for flagging this.)
---
undo-tree.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index 82ae5f7023..f4ee23f455 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -3564,11 +3564,8 @@ Note this will overwrite any existing undo history."
(setq undo-tree-visualizer-initial-node (undo-tree-current undo-tree))
(setq undo-tree-visualizer-spacing
(undo-tree-visualizer-calculate-spacing))
- (make-local-variable 'undo-tree-visualizer-timestamps)
- (make-local-variable 'undo-tree-visualizer-diff)
(setq buffer-undo-tree undo-tree)
(undo-tree-visualizer-mode)
- ;; FIXME; don't know why `undo-tree-visualizer-mode' clears this
(setq buffer-undo-tree undo-tree)
(set (make-local-variable 'undo-tree-visualizer-lazy-drawing)
(or (eq undo-tree-visualizer-lazy-drawing t)
@@ -4201,7 +4198,9 @@ Within the undo-tree visualizer, the following keys are
available:
:abbrev-table nil
(setq truncate-lines t)
(setq cursor-type nil)
- (setq undo-tree-visualizer-selected-node nil))
+ (setq undo-tree-visualizer-selected-node nil)
+ (make-local-variable 'undo-tree-visualizer-timestamps)
+ (make-local-variable 'undo-tree-visualizer-diff))
(define-minor-mode undo-tree-visualizer-selection-mode
- [elpa] externals/undo-tree updated (bf2e9ba0c9 -> 1f8d005409), Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 5da2a7aee9 1/9: Implement new undo-tree save format., Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 35a438bee8 3/9: Fix how undo-tree-viualizer-timestamps|diff are set buffer-local.,
Stefan Monnier <=
- [elpa] externals/undo-tree 594ed6a788 5/9: Fix URLs in package headers., Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 2bf5e230f1 7/9: Update contact email address in package headers., Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree cbe0c708d8 4/9: Fix potential insidious list creation bugs., Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 1f8d005409 9/9: * undo-tree.el: Various cosmetic changes, Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 25709c426d 2/9: Add missing Package-Requires header for queue dependency., Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 42aab056e3 6/9: Fix bug in detection of nodes corresponding to unmodified buffers., Stefan Monnier, 2022/03/12
- [elpa] externals/undo-tree 7171865096 8/9: Merge remote-tracking branch 'upstream/undo-tree/main' into externals/undo-tree, Stefan Monnier, 2022/03/12