[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/undo-tree bb92692 093/195: Don't override diff-switches
From: |
Stefan Monnier |
Subject: |
[elpa] externals/undo-tree bb92692 093/195: Don't override diff-switches customization option in visualizer diff display. |
Date: |
Sat, 28 Nov 2020 13:41:29 -0500 (EST) |
branch: externals/undo-tree
commit bb92692553e768286d12b83de5c20cf2ef529465
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Don't override diff-switches customization option in visualizer diff
display.
Fixed bug in diff display that threw and error when at root of undo tree.
Delete diff header showing buffer name and tmp file name.
---
undo-tree.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/undo-tree.el b/undo-tree.el
index 4c57e00..67a6eb3 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -475,6 +475,10 @@
;; selected state, i.e. it shows you the changes that will be applied if you
;; reset to the selected state.
;;
+;; (Note that the diff is generated by the Emacs `diff' command, and is
+;; displayed using `diff-mode'. See the corresponding customization groups if
+;; you want to customize the diff display.)
+;;
;; Finally, hitting "q" will quit the visualizer, leaving the parent buffer in
;; whatever state you ended at.
;;
@@ -3484,17 +3488,17 @@ at mouse event POS."
;; generate diff
(let ((undo-tree-inhibit-kill-visualizer t)
(current (undo-tree-current buffer-undo-tree)))
- (undo-tree-set (or node (undo-tree-node-previous current)))
+ (undo-tree-set (or node (undo-tree-node-previous current) current))
(setq tmpfile (diff-file-local-copy (current-buffer)))
(undo-tree-set current))
(setq buff (diff-no-select
- (current-buffer) tmpfile "-u" 'noasync
+ (current-buffer) tmpfile nil 'noasync
(get-buffer-create "*Diff") ;(concat " *undo-tree-diff*")
))
- ;; delete process messages from diff buffer
+ ;; delete process messages and useless headers from diff buffer
(with-current-buffer buff
(goto-char (point-min))
- (delete-region (point) (1+ (line-end-position)))
+ (delete-region (point) (1+ (line-end-position 3)))
(goto-char (point-max))
(forward-line -2)
(delete-region (point) (point-max))
- [elpa] externals/undo-tree 17454bd 084/195: Improved undo-tree-switch-branch behaviour., (continued)
- [elpa] externals/undo-tree 17454bd 084/195: Improved undo-tree-switch-branch behaviour., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f16ab5f 067/195: Trivial fix in Commentary., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e8215a7 078/195: Minor typo fixes in comments., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 8697a0b 077/195: Clear registers referring to nodes being discarded from undo history., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f956d55 074/195: Added autoload cookies, and other tweaks to prepare for ELPA packaging., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 4e558f8 088/195: Make various interactive commands signal an error if buffer is read-only., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e001bd5 091/195: Implemented diff display in visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 1229460 095/195: Make visualizer diff buffer name into a defconst., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 7fef53f 092/195: Display diff with current node in visualizer selection mode., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f3e7324 090/195: Use undo-tree-inhibit-kill-visualizer to inhibit undo-tree-kill-visualizer., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree bb92692 093/195: Don't override diff-switches customization option in visualizer diff display.,
Stefan Monnier <=
- [elpa] externals/undo-tree a220a42 097/195: Added registerv-make and registerv-data compatibility macros in Emacs <= 23., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 95599db 100/195: Fixed bug in visualizer selection mode when timestamps are displayed., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 81f1417 098/195: Added diff-no-select and diff-file-local-copy compatibility hacks, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree aa7202c 103/195: Fix the way keymaps are defined., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree e69adb3 109/195: Remove now unnecessary compatibility hack for called-interactively-p., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 00ffbb6 121/195: Bump version number below which we warn against enabling persistent storage., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 5df6374 128/195: Switch to lexical binding., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree 9b55464 126/195: Make undo history filename match docs., Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f566beb 106/195: Add customization option allowing timestamps to be displayed by default, Stefan Monnier, 2020/11/28
- [elpa] externals/undo-tree f3e0d93 119/195: Remove ChangeLog section from package headers., Stefan Monnier, 2020/11/28