GNU bug report logs - #48359
28.0.50; vc-annotate revert doesn't work

Previous Next

Package: emacs;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Tue, 11 May 2021 18:56:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dima Kogan <dima <at> secretsauce.net>
Cc: 48359 <at> debbugs.gnu.org
Subject: Re: bug#48359: 28.0.50; vc-annotate revert doesn't work
Date: Tue, 11 May 2021 22:10:34 +0300
> From: Dima Kogan <dima <at> secretsauce.net>
> Date: Tue, 11 May 2021 11:55:33 -0700
> 
> 1. emacs -Q -nw file_in_a_git_repo
>    Any file in any repo works probably. I'm using ~/.emacs.d/init.el
> 
> 2. C-x v g
>    vc-annotate
> 
> 3. g
>    Should "revert" the annotation buffer
> 
> This last step doesn't work: I get
> 
>   apply: Symbol's function definition is void: nil
> 
> Looking into that, I see that 'g' maps to (revert-buffer), which makes
> sense. For some reason, revert-buffer-function is set to
> #'help-mode-revert-buffer. This feels very strange. And is the cause of
> the error: help-mode-revert-buffer assumes we're looking at a Help
> buffer, and tries to call nil as a function. Is this speaking to anybody?

Here's the backtrace of the code which sets revert-buffer-function to
help-mode-revert-buffer:

  help-mode()
  help-mode-setup()
  run-hooks(temp-buffer-setup-hook)
  vc-annotate("d:/gnu/git/emacs/trunk/src/bidi.c" ...
  funcall-interactively(vc-annotate "d:/gnu/git/emacs/trunk/src/bidi.c" ...
  call-interactively(vc-annotate nil nil)
  command-execute(vc-annotate)




This bug report was last modified 2 years and 311 days ago.

Previous Next


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