Subject: Re: bug#59962: 29.0.60; vc commands fail in diff-mode

From: Juri Linkov <[email-masked]>
Date: Sun, 11 Dec 2022 19:24:54 +0200

close 59962 29.0.60
thanks

> As a distribution maintainer, I find myself working with
> version-controlled patches which Emacs visits in diff-mode.
> Unfortunately, there is a bad interaction between diff-mode and vc,
> which makes all vc commands fail.  This is what I got on C-x v l:
>
> ,----
> | Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
> |   file-truename(nil)
> |   find-buffer-visiting(nil)
> |   vc-buffer-sync-fileset((Git (nil nil nil nil) nil nil patch) t)
> |   vc-diff(nil t)
> |   funcall-interactively(vc-diff nil t)
> |   call-interactively(vc-diff nil nil)
> |   command-execute(vc-diff)
> `----

Thanks for the bug report.  It's fixed now on the emacs-29 branch.