Fix window selection after log-edit-show-diff, again
In October I installed a change to vc-diff-patch-string and labelled it as "Fix window selection after log-edit-show-diff" but that change only fixed the problem within log-view-modify-change-comment. This change should fix window selection after C-c C-d in ordinary checkins. * lisp/vc/log-edit.el (log-edit-diff-fileset): Use save-selected-window in order to respect the documented requirement that values of log-edit-diff-function leave the Log Edit buffer's window selected when they return.
This commit is contained in:
parent
13f439ce98
commit
d283db5773
1 changed files with 2 additions and 1 deletions
|
@ -857,7 +857,8 @@ comment history, see `log-edit-comment-ring', and hides `log-edit-files-buf'."
|
|||
(defun log-edit-diff-fileset ()
|
||||
"Display diffs for the files to be committed."
|
||||
(interactive)
|
||||
(vc-diff nil nil (list log-edit-vc-backend vc-log-fileset)))
|
||||
(save-selected-window
|
||||
(vc-diff nil nil (list log-edit-vc-backend vc-log-fileset))))
|
||||
|
||||
(defun log-edit-show-diff ()
|
||||
"Show the diff for the files to be committed."
|
||||
|
|
Loading…
Add table
Reference in a new issue