GNU bug report logs - #77529
31.0.50; [Feature Request][VC] How can I get the current revision of the buffer opened by =vc-find-revision=?

Previous Next

Package: emacs;

Reported by: jixiuf <jixiuf <at> qq.com>

Date: Fri, 4 Apr 2025 04:26:01 UTC

Severity: wishlist

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 77529 <at> debbugs.gnu.org (full text, mbox):

From: jixiuf <jixiuf <at> qq.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77529 <at> debbugs.gnu.org
Subject: Re: bug#77529: 31.0.50; [Feature Request][VC] How can I get the
 current revision of the buffer opened by =vc-find-revision=?
Date: Sat, 05 Apr 2025 17:53:25 +0800
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> But how can I get the SHA of the current revision when I am in a buffer
>> opened by =vc-find-revision=?
>
> That's the argument with which vc-find-revision was called, right?  So
> the only change we might need is to record the revision in some
> buffer-local variable, if we don't already do that (don't we show the
> revision of the mode line?).
Yes a buffer-local.

the 'revision' on the mode line is part of buffer name, not always a
revision.

(vc-find-revision "doc/lispref/help.texi" "remotes/origin/emacs-29"
'Git)

[20250405-174822.jpg (image/jpeg, inline)]

This bug report was last modified 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.