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 18:59:00 +0300 Message-ID: <6a42daae-db48-4c81-8121-79515ac94bf9@gutov.dev> References: <831qfc4d7h.fsf@gnu.org> <83y1hk2g29.fsf@gnu.org> <83a5tz33er.fsf@gnu.org> <7fa60b9c-ae00-5fdd-4805-aa55cb4094e3@gutov.dev> <83jzt31ez5.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="18829"; 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, pogonyshev@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 06 18:03:08 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 1qduzj-0004cI-0i for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Sep 2023 18:03:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qduwm-0004Xf-Gp; Wed, 06 Sep 2023 12:00:04 -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 1qduwk-0004V8-Ci for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 12:00: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 1qduwj-0004mk-Sp for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 12:00:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qduwk-0005tx-Qp for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 12:00: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 16:00: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.169401595722600 (code B ref 65763); Wed, 06 Sep 2023 16:00:02 +0000 Original-Received: (at 65763) by debbugs.gnu.org; 6 Sep 2023 15:59:17 +0000 Original-Received: from localhost ([127.0.0.1]:37194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qduw1-0005sS-0D for submit@debbugs.gnu.org; Wed, 06 Sep 2023 11:59:17 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qduvv-0005sB-5h for 65763@debbugs.gnu.org; Wed, 06 Sep 2023 11:59:14 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DA77E5C01A4; Wed, 6 Sep 2023 11:59:04 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 06 Sep 2023 11:59:04 -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= 1694015944; x=1694102344; bh=AEXLFU1dRcmoswiIJBzaUGmMjgxTT5jK5ky KtOgqX5A=; b=rgmg76+hXxGUwYIzXvyefKTaGfUzm4h+SZWIoA8fR5QAmeQFaMQ l1nW6EpTGD43v8uEOoe7mNm/dtomVEgHllN3FSMOql+x2Kj/TldL5N1Iz5CvCOX6 7yzvCHlarDdAocZED7CEUV/2RL26MbkrHouKHqcMuOaMs5Xkm+zGYOGlDtA2Gqw/ Y9XQahjxBUwHrt3KY4xGQjPdJ3kTdhOdc/Hwis516I7ZI8zvOl8dvgwGBt7YKwy2 c9yOghtZW3qNBnScaY5VGpVciDm++IH5T6FpdG1kh+OZyWuU7Xkp2VdE/xN3jpGQ HNXQ4N595F/12j9UgAmtw/g3ACbKJmXFVQQ== 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= 1694015944; x=1694102344; bh=AEXLFU1dRcmoswiIJBzaUGmMjgxTT5jK5ky KtOgqX5A=; b=Ls7xSFT1GPQSmHo8F8MB74dOu1DbAO3qI9vARDbAoGgcDnbxXld Cti5dbRY27ozZ71qzDmM0oXDzNeKnjfoVfh1uZ8fXslmD/942jsZnZLwGPLiFmaB LvnvRoKBntild83uLWRg/JGwePJ3LS9L01hz7ZgCDFEbcTiAl+hph2vDBYQm6A0o KygQ/OQvnhOMCYB7dTrLl+TzhO/aM8LRg5ABSPc5chz5tBT2OSrPIe45pydBr0ZL I/zvQR9FUyXB7oIenmcfNvIcBbDjsnYd0PB9jeleJtPwHC0Q4Z+0c9vy1OQE5XBd nJZrG0y9D34lGmFWT8bIylv/xICD7YLN4xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehfedgleegucetufdoteggodetrfdotf 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 11:59:02 -0400 (EDT) Content-Language: en-US In-Reply-To: <83jzt31ez5.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:269557 Archived-At: On 06/09/2023 18:46, Eli Zaretskii wrote: > I prefer to emit the messages, just make them more user-friendly > ("searching for program" "no such file or directory" is not very > friendly, IMO), and suppress the error signaling even when > debug-on-error is non-nil. The reason is simple: we are talking only > about Git not being installed or accessible here, but the problems > could be different and more obscure: Git could be present but > inoperable for some weird misconfiguration reason, or some other > problem could happen. So "if it is not installed, just silently don't > do anything" is not a complete solution, and the "silently" part loses > information which users may wish to have presented to them. That also sounds good to me.