GNU bug report logs -
#63689
29.0.91; vc-annotate-mode-menu: Cannot open file vc-nil
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Wed, 24 May 2023 16:32:01 UTC
Severity: normal
Found in version 29.0.91
Fixed in version 29.0.60
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63689 in the body.
You can then email your comments to 63689 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63689
; Package
emacs
.
(Wed, 24 May 2023 16:32:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> linkov.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 24 May 2023 16:32:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
0. emacs-29 -Q
1. Eval:
(context-menu-mode)
(setq debug-on-error t)
(require 'vc-annotate)
2. Open any vc-controlled file and type 'C-x v g' (vc-annotate)
3. Click the right mouse button for Context menu with "VC-Annotate" submenu
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "vc-nil")
vc-find-backend-function(nil revision-granularity)
vc-call-backend(nil revision-granularity)
(eq 'repository (vc-call-backend nil 'revision-granularity))
The error is caused by 'vc-annotate-mode-menu' that contains:
(keymap "VC-Annotate" ...
(Show\ changeset\ diff\ of\ revision\ at\ line
menu-item
"Show changeset diff of revision at line"
vc-annotate-show-changeset-diff-revision-at-line
:enable (eq 'repository (vc-call-backend nil 'revision-granularity))
Note how it tries to use the backend 'nil'.
This is because 'vc-annotate-backend' is evaluated when calling
(require 'vc-annotate) in the *scratch* buffer where it's nil.
Here is the fix for emacs-29:
diff --git a/lisp/vc/vc-annotate.el b/lisp/vc/vc-annotate.el
index 70057a6aac7..d83660f9d79 100644
--- a/lisp/vc/vc-annotate.el
+++ b/lisp/vc/vc-annotate.el
@@ -330,7 +330,7 @@ vc-annotate-mode-menu
["Show changeset diff of revision at line"
vc-annotate-show-changeset-diff-revision-at-line
:enable
- (eq 'repository (vc-call-backend ,vc-annotate-backend 'revision-granularity))
+ (eq 'repository (vc-call-backend vc-annotate-backend 'revision-granularity))
:help "Visit the diff of the revision at line from its previous revision"]
["Visit revision at line" vc-annotate-find-revision-at-line
:help "Visit the revision identified in the current line"]))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63689
; Package
emacs
.
(Thu, 25 May 2023 18:35:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 63689 <at> debbugs.gnu.org (full text, mbox):
close 63689 29.0.60
quit
> Here is the fix for emacs-29:
>
> diff --git a/lisp/vc/vc-annotate.el b/lisp/vc/vc-annotate.el
> index 70057a6aac7..d83660f9d79 100644
> --- a/lisp/vc/vc-annotate.el
> +++ b/lisp/vc/vc-annotate.el
> @@ -330,7 +330,7 @@ vc-annotate-mode-menu
> ["Show changeset diff of revision at line"
> vc-annotate-show-changeset-diff-revision-at-line
> :enable
> - (eq 'repository (vc-call-backend ,vc-annotate-backend 'revision-granularity))
> + (eq 'repository (vc-call-backend vc-annotate-backend 'revision-granularity))
> :help "Visit the diff of the revision at line from its previous revision"]
Pushed to emacs-29, and closed.
bug marked as fixed in version 29.0.60, send any further explanations to
63689 <at> debbugs.gnu.org and Juri Linkov <juri <at> linkov.net>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Thu, 25 May 2023 18:35:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 23 Jun 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 323 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.