From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#65763: Error opening a file from a Git working directory if Git is not installed Date: Wed, 6 Sep 2023 15:35:33 +0300 Message-ID: References: <831qfc4d7h.fsf@gnu.org> <83y1hk2g29.fsf@gnu.org> <83a5tz33er.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22675"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 65763@debbugs.gnu.org To: Eli Zaretskii , Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 06 14:36:25 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 1qdrlg-0005bv-C2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Sep 2023 14:36:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdrlP-0000JL-UF; Wed, 06 Sep 2023 08:36:07 -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 1qdrlJ-0000IX-QB for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 08:36:03 -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 1qdrlJ-0004wt-Hh for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 08:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdrlK-0008N0-9U for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 08:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2023 12:36: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.169400374432138 (code B ref 65763); Wed, 06 Sep 2023 12:36:02 +0000 Original-Received: (at 65763) by debbugs.gnu.org; 6 Sep 2023 12:35:44 +0000 Original-Received: from localhost ([127.0.0.1]:33350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdrl1-0008MH-O4 for submit@debbugs.gnu.org; Wed, 06 Sep 2023 08:35:44 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdrkz-0008M2-Me for 65763@debbugs.gnu.org; Wed, 06 Sep 2023 08:35:42 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6FA355C0165; Wed, 6 Sep 2023 08:35:35 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 06 Sep 2023 08:35:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1694003735; x=1694090135; bh=EeHXits/omg9Mu6pKpxburM/0QcyWaFfTdB UAV7qq6U=; b=mypRrYovkmDIE0zA8S3sMgqOaKomUPEoWgf3pfys3vLaPK5mZ37 +RF7tVwc5ed1sTMqV3ANgIS8+ZyPAXZs239Xk6k1Cga9nvYz9d0RPLeSVdVF+Fda qxt3zWCC0DPaNAJTZNnColzNpk9/h1zHwAcb8T4zVqYclH6k2wk3CyfHyVU0rM2f q1x5bv2dQcQVwjUCGZ3VeLMaVySwcICV4Pa/mrN+EODgF3EgvHx9qgQJSbzPMH2/ Yry8g4hUjp8WrHRT+X4tTTqVnZa6XhkqwLVXic/WtlzN7puCA6Eci+D2XtVNLrME g0UoV8MR3GStVUCPr5hSs7mUQMk5g/gXLgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1694003735; x=1694090135; bh=EeHXits/omg9Mu6pKpxburM/0QcyWaFfTdB UAV7qq6U=; b=GAL8uRqoOE1+xG5tS7wnR9+A4NTHjCLuyepsCWgxnLl31gKYwx5 fKf1t2W1IY2jDe2WUCLxA7Z+4W47Das9u0tWhwOWFG/28b8NveRRFqGXLfcf1gU0 WxD5S+rtCY+bB0vd1Wx8Oj9zRslxQAndJ9jGbaL9ceGw0e2/vX5Zkn+0aDvOIY1/ macy0t/Gu70bktei4AgQh6q4Z8a/Btl/ghW4p57h2X7BNqo/Ecp8YF4gXoiobdUF ltvQiToAZjwacbS+RvM5FmyT97DFSldalBNaG3wxiZUzatapd07OjBfWluljQWY8 YLM25zS6x5MEEvwHjwL4zV+LzoVtonOG/+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehfedghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Sep 2023 08:35:34 -0400 (EDT) Content-Language: en-US In-Reply-To: <83a5tz33er.fsf@gnu.org> 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:269534 Archived-At: On 06/09/2023 15:13, Eli Zaretskii wrote: >> From: Paul Pogonyshev >> Date: Wed, 6 Sep 2023 09:29:59 +0200 >> Cc:65763@debbugs.gnu.org >> >> The problem appears to be only with `debug-on-error'. However, there are cases where you cannot >> control it at all, e.g. with ERT (probably also Buttercup or any other testing framework). In effect, an >> ERT test fails for a "random" reason, depending on which machine it is executed, i.e. it fails inside >> that Docker container. > I see. > > 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. Rewriting with-demoted-errors is not an option, of course, but we could create a special, shorted version of it for vc. 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.