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)
and others are ignored. PREDICATE is called with the buffer as
the only argument, but not with the buffer as the current buffer.
+Note that indirect buffers don't count as visiting files,
+and that therefore this function only ever returns base buffers.
+
If there is no such live buffer, return nil."
(or (let ((buf (get-file-buffer filename)))
(when (and buf (or (not predicate) (funcall predicate buf))) buf))
(interactive (list current-prefix-arg t))
(if historic
(call-interactively 'vc-version-diff)
- (vc-maybe-buffer-sync not-essential)
(let ((fileset (or fileset (vc-deduce-fileset t))))
(vc-buffer-sync-fileset fileset not-essential)
(vc-diff-internal t fileset nil nil