From: Eli Zaretskii Date: Wed, 3 Jan 2024 12:39:30 +0000 (+0200) Subject: ; * lisp/vc/vc.el (vc-deduce-fileset): Add commentary for bug#68174. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ab57fc23ec873612cd428eea8aea002c0b533755;p=emacs.git ; * lisp/vc/vc.el (vc-deduce-fileset): Add commentary for bug#68174. (cherry picked from commit eac9757f5c1be1d13ad8e2a8c098bf0a24435e5c) --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 7b2301ee3e5..b8cc44fc3dc 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1157,6 +1157,9 @@ BEWARE: this function may change the current buffer." (vc-checkout-model backend buffer-file-name)) (list backend (list buffer-file-name)))) ((derived-mode-p 'log-view-mode) + ;; 'log-view-mode' stashes the backend and the fileset in the + ;; two special variables, so we use them to avoid any possible + ;; mistakes from a decision made here ad-hoc. (list log-view-vc-backend log-view-vc-fileset)) ((and (buffer-live-p vc-parent-buffer) ;; FIXME: Why this test? --Stef