GNU bug report logs -
#41974
28.0.50; Some vc commands refuse to work when called on non-file buffer
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 21 Jun 2020 00:00:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 41974 <at> debbugs.gnu.org (full text, mbox):
> On 21.06.2020 02:55, Juri Linkov wrote:
>> I think this restriction should be lifted, so vc commands should
>> work even when called on non-file buffers whose default-directory
>> is inside the vc project.
>
> Agreed.
>
> Does this patch help, or does it miss more cases?
>
> diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
> index 9b12d44978..36013fcdc9 100644
> --- a/lisp/vc/vc.el
> +++ b/lisp/vc/vc.el
> @@ -2563,7 +2563,7 @@ vc-print-branch-log
> (vc-read-revision "Branch to log: ")))
> (when (equal branch "")
> (error "No branch specified"))
> - (let* ((backend (vc-responsible-backend default-directory))
> + (let* ((backend (vc-deduce-backend))
> (rootdir (vc-call-backend backend 'root default-directory)))
> (vc-print-log-internal backend
> (list rootdir) branch t
Strange, this patch has no effect, the same error remains.
This bug report was last modified 5 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.