GNU bug report logs - #65763
Error opening a file from a Git working directory if Git is not installed

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Tue, 5 Sep 2023 18:56:01 UTC

Severity: normal

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: dmitry <at> gutov.dev, 65763 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#65763: Error opening a file from a Git working directory if
 Git is not installed
Date: Sun, 10 Sep 2023 20:52:27 +0300
> From: Paul Pogonyshev <pogonyshev <at> gmail.com>
> Date: Sun, 10 Sep 2023 19:36:47 +0200
> Cc: Dmitry Gutov <dmitry <at> gutov.dev>, monnier <at> iro.umontreal.ca, 65763 <at> debbugs.gnu.org
> 
> -       ((setq backend (with-demoted-errors "VC refresh error: %S"
> -                        (vc-backend buffer-file-name)))
> +       ((setq backend (let (debug-on-error)
> +                        (with-demoted-errors "VC refresh error: %S"
> +                          (vc-backend buffer-file-name))))
> 
> From my experience, you should always comment such things. Or add an automated test ensuring it.
> Or even better, do both. It is extremely non-obvious why this is needed at all and someone can easily
> undo your changes a few years later.

Yes, if this (or anything like it) goes in, we will comment it.  We
just haven't yet decided whether this will be the solution.




This bug report was last modified 1 year and 278 days ago.

Previous Next


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