]> git.eshelyaron.com Git - emacs.git/commit
vc-start-logentry: Use current buffer as parent buffer more often
authorSean Whitton <spwhitton@spwhitton.name>
Thu, 17 Oct 2024 12:57:07 +0000 (20:57 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Oct 2024 18:51:39 +0000 (20:51 +0200)
commitfaa530c100f05ca526106dd1a1cad7b4f38d5630
treebaaf1d30f6161d17f0b4be4e001b83de930bc74b
parente32fc90ef00338ffa6edee6c45fb89ad8e83be4a
vc-start-logentry: Use current buffer as parent buffer more often

* lisp/vc/vc-dispatcher.el (vc-start-logentry): When determining
the parent buffer, if get-file-buffer returns nil, use the
current buffer.  Also, if the first file is a directory, don't
try to call get-file-buffer, just use the current buffer.

(cherry picked from commit 475a33adb9134990fa05be8a6308216f12ed4ef7)
lisp/vc/vc-dispatcher.el