[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree f8c3abf 039/195: Replaced save-excursion's wi
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree f8c3abf 039/195: Replaced save-excursion's with with-current-buffer. |
Date: |
Sat, 28 Nov 2020 13:41:16 -0500 (EST) |
branch: externals/undo-tree
commit f8c3abf889486d0d25b7cb3b247e2e000720d307
Author: tsc25 <tsc25@cantab.net>
Commit: tsc25 <tsc25@cantab.net>
Replaced save-excursion's with with-current-buffer.
---
undo-tree.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index 07a2bdf..d5bc7c2 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -1315,8 +1315,7 @@ using `undo-tree-redo'."
;; buffer when visualizer is invoked.
(unless undo-in-progress
(unwind-protect
- (save-excursion
- (set-buffer " *undo-tree*")
+ (with-current-buffer " *undo-tree*"
(undo-tree-visualizer-quit)))))
@@ -1682,8 +1681,7 @@ using `undo-tree-redo' or `undo-tree-visualizer-redo'."
(interactive)
(undo-tree-clear-visualizer-data buffer-undo-tree)
;; remove kill visualizer hook from parent buffer
- (save-excursion
- (set-buffer undo-tree-visualizer-buffer)
+ (with-current-buffer undo-tree-visualizer-buffer
(remove-hook 'before-change-functions 'undo-tree-kill-visualizer t))
(kill-buffer-and-window))
- [elpa] externals/undo-tree 45751ef 050/195: Fixed bug in undo-tree-switch-branch., (continued)
- [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
- [elpa] externals/undo-tree f93420b 038/195: Remap undo-only to undo-tree-undo in undo-tree-map., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f8c3abf 039/195: Replaced save-excursion's with with-current-buffer.,
Stefan Monnier <=
- [elpa] externals/undo-tree 723eeeb 040/195: Improved undo-tree-visualizer-quit behaviour, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 8871f91 041/195: Added header containing git repository URL., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 3f5cc71 045/195: Updated commentary to include register commands,, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 5176770 047/195: Added missing Change Log entry., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f44688d 048/195: Prevent debugger being called on "No further redo information" error., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bff9f31 049/195: Made undo-tree-visualizer-quit select window displaying parent buffer, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 04b1a6f 054/195: Fixed bugs in history-discarding logic., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 227473a 058/195: Modified undo-tree-node defstruct and macros to allow arbitrary meta-data, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 011e11e 061/195: Rebuild buffer-undo-list from tree when disabling undo-tree-mode., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree a4b591b 059/195: Indicate registers storing undo-tree state in visualizer., Stefan Monnier, 2020/11/28