]> git.eshelyaron.com Git - emacs.git/commit
Fix window selection after log-edit-show-diff, again
authorSean Whitton <spwhitton@spwhitton.name>
Tue, 8 Apr 2025 12:36:42 +0000 (20:36 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 8 Apr 2025 19:41:52 +0000 (21:41 +0200)
commitff4623f0215803581f1d64295af943ad52172a6b
tree4ffbbfbce534b95aadd995dc9f59eb3289a295d6
parentbba7fb8eb0d2a12a62998aa0e2b8c888adb1c0f9
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.

(cherry picked from commit d283db577339ee247826bfa1e8c1808dad823858)
lisp/vc/log-edit.el