]> git.eshelyaron.com Git - emacs.git/commit
vc-diff: Delete redundant call to vc-maybe-buffer-sync
authorSean Whitton <spwhitton@spwhitton.name>
Sat, 26 Apr 2025 05:15:55 +0000 (13:15 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 27 Apr 2025 13:29:15 +0000 (15:29 +0200)
commitf5b6d660de9d0f22569a375163ff7ad1567fbf99
tree97354455f00123a0202860a77b1405a9135f2ea3
parent9ca8bcf7f6c53752ba1dc56ad9202fb4329b049f
vc-diff: Delete redundant call to vc-maybe-buffer-sync

This call is redundant with the subsequent call to
vc-buffer-sync-fileset.  I believe this call to
vc-maybe-buffer-sync was reintroduced by accident -- the
changeset adding the call to vc-buffer-sync-fileset deleted a
call to vc-sync-fileset in the same place.

* lisp/vc/vc.el (vc-diff): Delete redundant call to
vc-maybe-buffer-sync.
* lisp/files.el (find-buffer-visiting): Note in docstring that
this function only ever returns base buffers.

(cherry picked from commit d047a89e769f3c8429c43a40d5f251a895590d3a)
lisp/files.el
lisp/vc/vc.el