Skip to content

Commit

Permalink
Replaced save-excursion's with with-current-buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsc25 committed Dec 28, 2009
1 parent f93420b commit f8c3abf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions undo-tree.el
Expand Up @@ -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)))))


Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit f8c3abf

Please sign in to comment.