]> git.eshelyaron.com Git - emacs.git/commit
New buffer-local vc-buffer-overriding-fileset and vc-buffer-revision
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 4 Apr 2025 02:49:57 +0000 (10:49 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 11 Apr 2025 11:37:26 +0000 (13:37 +0200)
commite1001f8afbf578c228f36e73a0acb15376162da6
tree90b90455027c437aa7238c3507feba45f916bad2
parent753dd97fd8eb0f39a869c2d506442476574ae225
New buffer-local vc-buffer-overriding-fileset and vc-buffer-revision

* lisp/vc/vc.el (vc-buffer-overriding-fileset)
(vc-buffer-revision): New variables (bug#77529).
(vc-find-revision-save, vc-find-revision-no-save): Set them.
(vc-deduce-fileset): Respect vc-buffer-overriding-fileset.
(vc-print-log): Use vc-buffer-revision as a default working
revision.

* lisp/vc/vc-annotate.el (vc-annotate-parent-file)
(vc-annotate-parent-rev): Delete.
(vc-annotate): Respect vc-buffer-overriding-fileset and
vc-buffer-revision.  This makes 'C-x v g' work from buffers
generated by 'C-x v ~' (bug#5424).
Set the two variables in the newly prepared buffer.
(vc-annotate-working-revision)
(vc-annotate-extract-revision-at-line)
(vc-annotate-revision-at-line, vc-annotate-warp-revision)
(vc-annotate-goto-line):
* lisp/vc/vc-svn.el (vc-svn-annotate-current-time): Use
vc-buffer-overriding-fileset instead of vc-annotate-parent-file,
vc-buffer-revision instead of vc-annotate-parent-rev.
(vc-annotate-parent-rev): Delete declaration.

* etc/NEWS: Announce the new variables.

(cherry picked from commit 60530889c309746def95f32d3dfc117bc4f98444)
lisp/vc/vc-annotate.el
lisp/vc/vc-svn.el
lisp/vc/vc.el