From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65763: Error opening a file from a Git working directory if Git is not installed Date: Wed, 06 Sep 2023 16:06:04 +0300 Message-ID: <83sf7r1mf7.fsf@gnu.org> References: <831qfc4d7h.fsf@gnu.org> <83y1hk2g29.fsf@gnu.org> <83a5tz33er.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65763@debbugs.gnu.org, pogonyshev@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 06 15:07:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qdsFU-0005tJ-Vg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Sep 2023 15:07:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdsFL-0006s0-Mg; Wed, 06 Sep 2023 09:07:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdsFK-0006rl-3y for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 09:07:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdsFJ-0003cq-R2 for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 09:07:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdsFK-0000nR-8V for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2023 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65763 X-GNU-PR-Package: emacs Original-Received: via spool by 65763-submit@debbugs.gnu.org id=B65763.16940055883019 (code B ref 65763); Wed, 06 Sep 2023 13:07:02 +0000 Original-Received: (at 65763) by debbugs.gnu.org; 6 Sep 2023 13:06:28 +0000 Original-Received: from localhost ([127.0.0.1]:33412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdsEm-0000mc-1S for submit@debbugs.gnu.org; Wed, 06 Sep 2023 09:06:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdsEj-0000mP-Of for 65763@debbugs.gnu.org; Wed, 06 Sep 2023 09:06:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdsEd-0003Qp-76; Wed, 06 Sep 2023 09:06:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DyWrIrI3QZS9v1jfYz4kuTDU9bBJXHgDlGJAbSEfYaQ=; b=XxuQ/b/cpRYN meIa51iT5O5XaVWGcLRiigPomZfrmR73zyC3CkoAJ6LCu71X8fXerik8l3BxMCkeLNF+OdI2J0T72 C3dMyxYYVaKKOU5wudBBBP16abdqUf0t6B+Kus0HVrKvlMDzvW4rLPfjnZKIvgWI8BmD+ZbtB29ne 6wGHmRMD9FqJR9/DRjNO08jtXxW/zyqVM/hapPpH6z3gvCc1SSQd2h/7SaFZkD3givP4aTkBJPr3U jOsFsBFe6eGABmxjbmeGwItTcxCbAC1Yro8wBX2s/YgWjDtpOhY8ASYIIU5gJ4SOeVrBx1DprpNxu MNtV9NtYeUWmhh46uYyUUA==; In-Reply-To: (message from Dmitry Gutov on Wed, 6 Sep 2023 15:35:33 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269541 Archived-At: > Date: Wed, 6 Sep 2023 15:35:33 +0300 > Cc: 65763@debbugs.gnu.org > From: Dmitry Gutov > > On 06/09/2023 15:13, Eli Zaretskii wrote: > > Well, we could then protect the execution of the problematic form "by > > hand" by using condition-case-unless-debug. Dmitry, WDYT? > > Maybe the solution is to use the straight condition-case rather than > condition-case-unless-debug? Because otherwise as long as > condition-case-unless-debug is used, we would always have this problem. Sorry, I forgot that debug-on-error affects condition-case-unless-debug as well. > Rewriting with-demoted-errors is not an option, of course, but we could > create a special, shorted version of it for vc. Yes, something like that. Shouldn't be hard, I think. > Another option, though, is to rewrite the ERT tests in question: e.g. to > bind vc-handled-backends to nil, or to some other value if the presence > of certain VC programs is known and expected in advance. Yes, but that needs to be done in every test...