Received: (at 67171) by debbugs.gnu.org; 25 Nov 2023 18:43:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 25 13:43:35 2023 Received: from localhost ([127.0.0.1]:40287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6xct-0005df-5c for submit <at> debbugs.gnu.org; Sat, 25 Nov 2023 13:43:35 -0500 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:57041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1r6xcj-0005cr-Gx for 67171 <at> debbugs.gnu.org; Sat, 25 Nov 2023 13:43:26 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 11760240003; Sat, 25 Nov 2023 18:43:11 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Dmitry Gutov <dmitry@HIDDEN> Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command In-Reply-To: <fc6b2400-a180-8cb1-a4c2-3d7e20484d6a@HIDDEN> (Dmitry Gutov's message of "Fri, 24 Nov 2023 14:27:56 +0200") Organization: LINKOV.NET References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> <87a5r4bim6.fsf@HIDDEN> <867cm8z8rt.fsf@HIDDEN> <197e0d54-dab9-e7cf-e78d-ea7384735f1b@HIDDEN> <86il5rlj01.fsf@HIDDEN> <fc6b2400-a180-8cb1-a4c2-3d7e20484d6a@HIDDEN> Date: Sat, 25 Nov 2023 20:39:37 +0200 Message-ID: <86a5r1y8wm.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 67171 Cc: 67171 <at> debbugs.gnu.org, sbaugh@HIDDEN, Sean Whitton <spwhitton@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain >>>>> As an aside, it doesn't seem good that whether or not step four prompts >>>>> you for a directory depends on whether the current buffer happens to be >>>>> visiting a file or not. Can we improve that, or is it inherent to the >>>>> design of the new feature? >>>> This was improved recently in bug#67145, so now you can set >>>> 'vc-deduce-backend-nonvc-modes' to nil to avoid this prompt. >>>> I'm not sure if nil should be the default value. >>> I wonder if the "deduce in all modes" value should be t rather than nil. >> Good idea since nil could be used to disable deduction completely. >> Then maybe it should be defcustom? > > Why not. Maybe something like this: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=vc-deduce-backend-nonvc-modes.patch diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 1bd9ecb2193..bde22536d1f 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1071,19 +1071,23 @@ log-edit-vc-backend (defvar diff-vc-backend) (defvar diff-vc-revisions) -;; Maybe we could even use comint-mode rather than shell-mode? -(defvar vc-deduce-backend-nonvc-modes +(defcustom vc-deduce-backend-nonvc-modes + ;; Maybe we could even use comint-mode rather than shell-mode? '(dired-mode shell-mode eshell-mode compilation-mode) "List of modes not supported by VC where backend should be deduced. In these modes the backend is deduced based on `default-directory'. -When nil, the backend is deduced in all modes.") +When t, the backend is deduced in all modes." + :type '(choice (const :tag "None" nil) + hook + (const :tag "All" t)) + :version "30.1") (defun vc-deduce-backend () (cond ((derived-mode-p 'vc-dir-mode) vc-dir-backend) ((derived-mode-p 'log-view-mode) log-view-vc-backend) ((derived-mode-p 'log-edit-mode) log-edit-vc-backend) ((derived-mode-p 'diff-mode) diff-vc-backend) - ((or (null vc-deduce-backend-nonvc-modes) + ((or (eq vc-deduce-backend-nonvc-modes t) (derived-mode-p vc-deduce-backend-nonvc-modes)) (ignore-errors (vc-responsible-backend default-directory))) (vc-mode (vc-backend buffer-file-name)))) --=-=-=--
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 24 Nov 2023 12:28:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 24 07:28:16 2023 Received: from localhost ([127.0.0.1]:35812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6VI7-0000Em-VA for submit <at> debbugs.gnu.org; Fri, 24 Nov 2023 07:28:16 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:44649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1r6VI4-0000ES-US for 67171 <at> debbugs.gnu.org; Fri, 24 Nov 2023 07:28:14 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A7E965C013B; Fri, 24 Nov 2023 07:28:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 24 Nov 2023 07:28:01 -0500 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= 1700828881; x=1700915281; bh=CifJtNp1MVPFaCahOCPAtvCsWECyggaU2y9 63QlvSeo=; b=xhDjXldiVifPms5ObUndLyCqi99ClM86UfjNsuPzpAVnGvWpRCe ud6P2dy6i+9ZlpK0P7Ym1h3slpzFHu2088KM0gPsmmlVx/ZiVuw0CZtQLGCHW9d+ VYK0xBf1iVljLpIrLYLOgEWYEWMbP+1vm1db8CyEw+roqP5wFN4kXu7hkqKnzBQU RMCMcwLfRAyGXpeWLsDlHjSaV1yHO9Qp1KUQ4fv+r4Ap3asK4sRcl9pzGR81/8bA 0BeqOUyQMLTrsiuyHjIk5q0pif7ZRe5h5Cy4g0D2eiiBApJ47SZhWool+wZ5gB/q N7+p6WwLxmb61XkLznFnl/ch3a9kDe6lYbg== 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= 1700828881; x=1700915281; bh=CifJtNp1MVPFaCahOCPAtvCsWECyggaU2y9 63QlvSeo=; b=a579W6+fzQoeS8akjaIE1IqKFoRH3QIwr7pbmSGplSxxUNzCg1+ V8qIsdIScOfSE9WnmE2HR2X8uTeHhBTorzqKHK/FZBT8S59Qj6+V/t+1LnoBoSHe zNOo4kmWM1fVDXYhv8l13ycL3Qsd6FR0TThhR3jgTLqRgj+WxywDHbFnfKdh4rEf 3F1+4/5Q8XmXSSfjKrUp5+4V3aLCZK8NpqmSNnHKO+LRpuLmrC6LUuKKzSdKJSlx EhjJa8YPFavWlM4TXO6Dbod+P3at7ARZsGFmq+5Lu+1kXOKt04AIfN7na3/sL7wB 0lnsc+aSeaLjShXCjYyEceFQpzVsTvvA1ng== X-ME-Sender: <xms:0ZZgZc5VOdYhpHBp5ZNL24Lqj7fDfU76CX7wwQI6yJgnsIZXqDXQGg> <xme:0ZZgZd64Xr_XzkWqTNMxXwkpYs1t2-RbnWM7cO8DWZqYWWF7S2KElt3olOlhITihJ 05xOy_jn9B7LR7d-hI> X-ME-Received: <xmr:0ZZgZbeCdH1iB8N78gIFRGM_28leafCx-4Xp6dS2FE-QaKnqLFuk885d-bX3UlvzhS-zBg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehhedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: <xmx:0ZZgZRJ-o4_RnlB2ITXuybdZiruQnX_W3Ewu2WzQhhMlzPaFY-lamA> <xmx:0ZZgZQKevBxvV1uW4dzdKnIcevaJ7UUeHc2ShcA6YpxRSVuYimozdw> <xmx:0ZZgZSyvA5lKdgB89yU5AY_tUeZ-yIPTweda8K5hqM_RFTOYa8rbmw> <xmx:0ZZgZXWpiKv3V1vVqggOyMPcWbNT8XcdICQH0YOHUwee7TCuRJhceQ> Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Nov 2023 07:27:59 -0500 (EST) Message-ID: <fc6b2400-a180-8cb1-a4c2-3d7e20484d6a@HIDDEN> Date: Fri, 24 Nov 2023 14:27:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Content-Language: en-US To: Juri Linkov <juri@HIDDEN> References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> <87a5r4bim6.fsf@HIDDEN> <867cm8z8rt.fsf@HIDDEN> <197e0d54-dab9-e7cf-e78d-ea7384735f1b@HIDDEN> <86il5rlj01.fsf@HIDDEN> From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <86il5rlj01.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 67171 Cc: 67171 <at> debbugs.gnu.org, sbaugh@HIDDEN, Sean Whitton <spwhitton@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.9 (---) On 24/11/2023 09:46, Juri Linkov wrote: >>>> As an aside, it doesn't seem good that whether or not step four prompts >>>> you for a directory depends on whether the current buffer happens to be >>>> visiting a file or not. Can we improve that, or is it inherent to the >>>> design of the new feature? >>> This was improved recently in bug#67145, so now you can set >>> 'vc-deduce-backend-nonvc-modes' to nil to avoid this prompt. >>> I'm not sure if nil should be the default value. >> I wonder if the "deduce in all modes" value should be t rather than nil. > Good idea since nil could be used to disable deduction completely. > Then maybe it should be defcustom? Why not.
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 24 Nov 2023 08:22:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 24 03:22:07 2023 Received: from localhost ([127.0.0.1]:35566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6RRv-0001oc-AP for submit <at> debbugs.gnu.org; Fri, 24 Nov 2023 03:22:07 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:51929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1r6RRt-0001o6-Og for 67171 <at> debbugs.gnu.org; Fri, 24 Nov 2023 03:22:06 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 9089CC0008; Fri, 24 Nov 2023 08:21:52 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Dmitry Gutov <dmitry@HIDDEN> Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command In-Reply-To: <197e0d54-dab9-e7cf-e78d-ea7384735f1b@HIDDEN> (Dmitry Gutov's message of "Fri, 24 Nov 2023 00:21:27 +0200") Organization: LINKOV.NET References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> <87a5r4bim6.fsf@HIDDEN> <867cm8z8rt.fsf@HIDDEN> <197e0d54-dab9-e7cf-e78d-ea7384735f1b@HIDDEN> Date: Fri, 24 Nov 2023 09:46:20 +0200 Message-ID: <86il5rlj01.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 67171 Cc: 67171 <at> debbugs.gnu.org, sbaugh@HIDDEN, Sean Whitton <spwhitton@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >>> As an aside, it doesn't seem good that whether or not step four prompts >>> you for a directory depends on whether the current buffer happens to be >>> visiting a file or not. Can we improve that, or is it inherent to the >>> design of the new feature? >> This was improved recently in bug#67145, so now you can set >> 'vc-deduce-backend-nonvc-modes' to nil to avoid this prompt. >> I'm not sure if nil should be the default value. > > I wonder if the "deduce in all modes" value should be t rather than nil. Good idea since nil could be used to disable deduction completely. Then maybe it should be defcustom?
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 23 Nov 2023 22:30:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 23 17:30:57 2023 Received: from localhost ([127.0.0.1]:35320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6IDp-0002eN-6C for submit <at> debbugs.gnu.org; Thu, 23 Nov 2023 17:30:57 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1r6IDn-0002e8-Dx for 67171 <at> debbugs.gnu.org; Thu, 23 Nov 2023 17:30:56 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2DD095C00E1; Thu, 23 Nov 2023 17:30:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 23 Nov 2023 17:30:46 -0500 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= 1700778646; x=1700865046; bh=dB0WPialitYquYH/XfXmbRSC6PNkyVN2s2x +TU44B5c=; b=Nv2D25YDMpGFO0pDMShhEnJaZAYmXMsgiQKCLBTTiQaYx7NwpxU hhL6kDsZu+SpaQhIGUJdoCou/yi6ZUjW9hon+WNl0Dk9Feo3JEodr/YDYt0ChPQz FGPGYZPDqDZH2bdGQM3eYjVLBNZBzdfUVAOCZ2LzuPiACB5jmQgEw0zb+2u1VwJl LBcPXnYh822XmKhwydKxao51C585963sjPtpa0nIJUUXw7bcqBCyG9lnpd7l+G7a Tv/wf9hIgKjsIXS5Mgn2YiIg8Nltr6AoUERKlxGugDv4rKAqvAXxktou+kTzPTm+ 26lU/TS/hqVdHFIT6pE91ZSQRAD+egkMdKg== 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= 1700778646; x=1700865046; bh=dB0WPialitYquYH/XfXmbRSC6PNkyVN2s2x +TU44B5c=; b=G7zfFY/OkL+wND6Xm7yp6X5W0lgcOucRnsb8VpBGKimWf4UMYAg ODl9ZkUjTiQxJ5SCEIa/rY7EfFe0Up5NkppD25GecTBmN7QDslI3KQ3l6bbjS0ZC SITQNVw94Uu+2kIopQ/f2xWwNQ3brAZCTuOt8zrCD0hRxSOxUkmmfjpYykyUuBb2 twt79FNII2IS/y/mi+cYgHX4C2hQ7RYy6UnKU6eOwPVm4j9yKj2sCakanwTfMIb9 ybFSaSwFmhdu1F+PRxLu9tZDAb16c6vky8Nc2gKINTO5wN9LoCIWozHQFL6QISRx IuyTwfLBbIgWXWyefgRPFF7Q5FwBQIa/6NQ== X-ME-Sender: <xms:ldJfZRRirvKA98vPvBUsof0QCCf7F4LjQyIz_kutkWqPvMV8oTYjNA> <xme:ldJfZazWwwrYn12oyUf4X-iqCV8rykxSoVCXZEyKG8I4SYT3RIUeT8pexFOeMu1D4 DUw_VgfvJOimYNP-cI> X-ME-Received: <xmr:ldJfZW1HMY6-uOSUc0tSVEMvhp8gKa-y5P6CySVPPy9ZXsA4kKwq8EyleMgLu9BJbpihmA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfedgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeduudeujeeiteevkefftdejleehieetveeutddtudejieefvdfgteetfefh ffdugeenucffohhmrghinhepvghlrdhimhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: <xmx:ltJfZZDDhnRtS4uEHOkQrPKy27ZYfakwUkxdEfvsLimzstytkPWCMA> <xmx:ltJfZahoGBbg5DBSdQ00aEd5H9p2C-ctSBkHfNu3TaaQmYtqlFdfMw> <xmx:ltJfZdobMgLhFeQhjo8WIkw0DRFwiEXLXcxbUEiOetS7Bem_EYgUnQ> <xmx:ltJfZdviODdCXln5Njm_ChHF4UTOMCIeeuWPRf0xK98m_FFiJTtqng> Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Nov 2023 17:30:44 -0500 (EST) Message-ID: <ae9e63a1-9138-f98d-af18-888c1ad2bcbd@HIDDEN> Date: Fri, 24 Nov 2023 00:30:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Content-Language: en-US To: Sean Whitton <spwhitton@HIDDEN> References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> <87a5r4bim6.fsf@HIDDEN> From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <87a5r4bim6.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 67171 Cc: 67171 <at> debbugs.gnu.org, sbaugh@HIDDEN, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.9 (---) On 23/11/2023 17:21, Sean Whitton wrote: >> On 14/11/2023 15:13, Sean Whitton wrote: >>> X-debbugs-cc: dmitry@HIDDEN, juri@HIDDEN, sbaugh@HIDDEN >>> Hello, >>> 1. cd /home/spwhitton/src/some-project && emacs -q >>> 2. (setopt project-switch-commands #'project-prefix-or-any-command) >>> 3. (project-remember-project (project-current nil "/home/spwhitton/src/emacs/trunk/)) >>> 4. C-x p p /home/spwhitton/src/emacs/trunk RET C-x v L >>> VC prints the log of /home/spwhitton/some-project, not that of >>> /home/spwhitton/src/emacs/trunk. >> >> I'm having difficulty reproducing this. > > Hmm. I can't reproduce it with 'emacs -q', but I can still reproduce > with my init.el. I'm not sure whether something changed or whether I > was wrong before. > >> On step 4, I'm asked for the project root (because *scratch* doesn't >> have a current VC backend), but the input defaults to the directory >> chosen in steps 3 and 4. And if I open a file-visiting buffer first, >> then the prompt is skipped, [...] > > If I select *Messages*, which has a default-directory of "~/", then > 'C-x p p RET ~/src/emacs/trunk RET C-x v L' prompts me for a directory, > but the default value is "~/". Before I start bisecting my init, does > anything else occur to you? That's the thing: I've tried a few different things which could have helped reproduce this, but they didn't. > As an aside, it doesn't seem good that whether or not step four prompts > you for a directory depends on whether the current buffer happens to be > visiting a file or not. Can we improve that, or is it inherent to the > design of the new feature? More like it's inherent to how the command you are calling is designed: it checks for the backend of the current buffer and behaves differently depending on whether one is found. Since project-prefix-or-any-command works in the current buffer, it cannot really reset every such local variable. OTOH, it could temporarily switch to an empty buffer. In that case, however, any thing-at-point functionality won't work (and the invoked command might want to use the symbol at point as some default input or etc). At the time we discussed this, the latter seemed like a bigger problem. Like Juri said, this particular disparity can be configured away, but different oddities in that class are bound to come up again.
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 23 Nov 2023 22:21:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 23 17:21:43 2023 Received: from localhost ([127.0.0.1]:35301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6I4t-0002Oa-G1 for submit <at> debbugs.gnu.org; Thu, 23 Nov 2023 17:21:43 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1r6I4r-0002ON-Eo for 67171 <at> debbugs.gnu.org; Thu, 23 Nov 2023 17:21:42 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DE8B65C00C4; Thu, 23 Nov 2023 17:21:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 23 Nov 2023 17:21:31 -0500 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= 1700778091; x=1700864491; bh=Uy/2tG5RleBw2yq6iCRSDRnfP4Z+Xu1Ue/o zCb47+mE=; b=iyMISRxT83eQlgW/soVfoVmgKThSwYPfk2p44sV8qLJ0Rq6Kuem Tor/DYtsRlyqskCogqPGsa9fbYfn2dFgz7jFzy+Gn+8z68/ri3swGi647MSkyvVj DrLcY09FFVD5cx8JCVfpwqN0Kaujdh3qePaY3VVO9AXZcOyUKIgrUgVhvPmRhse1 y9uuBNx/m0YUA6Er2MxZb/vhfYhRDzlWOVOmiYYT495f8gdOPOCF4zpE1wFggwh2 AdilCjFyMGwTINOQVn8GsyVGMLb+azMK99wFq5RU1q0IRUs6AUesGNlFkblecA4A cacRdZGXJUI1083IE/tozVYtW8MpdlSL7wg== 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= 1700778091; x=1700864491; bh=Uy/2tG5RleBw2yq6iCRSDRnfP4Z+Xu1Ue/o zCb47+mE=; b=Iv2Q3zsWKOaNGVPgHotfMPCBjDpxTe7IrQ8bvHoIN8WLA7zHQoq S6ELdbmVXYmuNb99tCfNrfTujCPdUaWsMoG3shLZtl32DK2tzg7dUa6aoQnbdSEP zPAr+hlwA3IToJxTlsw1Rv1TjpyGNPESBy32R/+n4GXtfL3XZ63QjjjYAhwYTR7M eFXW8U1UFP+h0nlkKXnq2Uz8a6yrT8kM5vDjzMHkSg8Rn4WlQ7T6Gu9xB1Qbr5tH /MCsp+K2z49SePYiCInjz6OA3/2D8Ax59M12VE+4z2aFO6qrORxEmAcZZ72XO4FD gEOL9E/VaINVvkxBpgGWqZEfMQdtbiszDkQ== X-ME-Sender: <xms:a9BfZT5R_-h3GU99Y9Row7T2uGtDqDnhyb0XIh76J01tEWO1tGdwGg> <xme:a9BfZY5n0Yisq6R3YHIpe2PMNBy08Wo33ZKXav52eNEVSugLPRA8sscjGJFdY2FOZ ymohI9sFWqA8EWiAT4> X-ME-Received: <xmr:a9BfZacDe_aEHRnxXGvHJO4nO5vmPxZGgVR4i9T_qC4bD7LVgIdLOLk72vLktpWxXLXJ8A> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfedgudehkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: <xmx:a9BfZUIEgOyzSwVFvRqMIfpwHS6iPF95hrl_7NYACqZabhWgFdRzkA> <xmx:a9BfZXLgcBvvyPgLlpOX_u-Y_kOR6DrTuZzKZdyPmC0e0ehBlhTZgw> <xmx:a9BfZdyYtF6B_jCsTQtIfy_XsGOilI99hSa86AzURNPsXVleSKkMew> <xmx:a9BfZeXJOKBh9Ppmo98jih8jZoXTsshJyjZD6NyZmR-LoodWXhkofA> Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Nov 2023 17:21:30 -0500 (EST) Message-ID: <197e0d54-dab9-e7cf-e78d-ea7384735f1b@HIDDEN> Date: Fri, 24 Nov 2023 00:21:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Content-Language: en-US To: Juri Linkov <juri@HIDDEN>, Sean Whitton <spwhitton@HIDDEN> References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> <87a5r4bim6.fsf@HIDDEN> <867cm8z8rt.fsf@HIDDEN> From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <867cm8z8rt.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 67171 Cc: 67171 <at> debbugs.gnu.org, sbaugh@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.9 (---) On 23/11/2023 19:20, Juri Linkov wrote: >> As an aside, it doesn't seem good that whether or not step four prompts >> you for a directory depends on whether the current buffer happens to be >> visiting a file or not. Can we improve that, or is it inherent to the >> design of the new feature? > This was improved recently in bug#67145, so now you can set > 'vc-deduce-backend-nonvc-modes' to nil to avoid this prompt. > I'm not sure if nil should be the default value. I wonder if the "deduce in all modes" value should be t rather than nil.
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 23 Nov 2023 17:21:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 23 12:21:44 2023 Received: from localhost ([127.0.0.1]:35036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6DOa-0000UE-EN for submit <at> debbugs.gnu.org; Thu, 23 Nov 2023 12:21:44 -0500 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:46291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1r6DOY-0000U0-8B for 67171 <at> debbugs.gnu.org; Thu, 23 Nov 2023 12:21:43 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 26FFD240002; Thu, 23 Nov 2023 17:21:29 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command In-Reply-To: <87a5r4bim6.fsf@HIDDEN> (Sean Whitton's message of "Thu, 23 Nov 2023 15:21:37 +0000") Organization: LINKOV.NET References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> <87a5r4bim6.fsf@HIDDEN> Date: Thu, 23 Nov 2023 19:20:22 +0200 Message-ID: <867cm8z8rt.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 67171 Cc: Dmitry Gutov <dmitry@HIDDEN>, sbaugh@HIDDEN, 67171 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > As an aside, it doesn't seem good that whether or not step four prompts > you for a directory depends on whether the current buffer happens to be > visiting a file or not. Can we improve that, or is it inherent to the > design of the new feature? This was improved recently in bug#67145, so now you can set 'vc-deduce-backend-nonvc-modes' to nil to avoid this prompt. I'm not sure if nil should be the default value.
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 23 Nov 2023 15:21:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 23 10:21:53 2023 Received: from localhost ([127.0.0.1]:34677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r6BWa-0002Vu-M8 for submit <at> debbugs.gnu.org; Thu, 23 Nov 2023 10:21:53 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:44947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1r6BWY-0002Vg-7m for 67171 <at> debbugs.gnu.org; Thu, 23 Nov 2023 10:21:51 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1DB485C0101; Thu, 23 Nov 2023 10:21:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 23 Nov 2023 10:21:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc: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=1700752900; x= 1700839300; bh=9kqxWd+7hmRtCWW6XUtyjavrsq2Rvj+oSjAe3gXFpT4=; b=z BbIZLE082fCx2+W4rutT2k73IKI2VwW6gFqeXg3MsRSZnI+gFONiX1xK5fyyL/VP 2D98sKGHzXPGSrNU7ns4rehEbQp7HFiL3pHc3MSTwcx8nvSPGbQXuLv4KwROVKAh z1xkWeMx65rQtSK8LpGNanH/mROhj0p4mtcQ/2xMAy8TXhX5QPc3nEFLGXX4PgEf Mg84jp5mkIZ5nyLHFErPaAMHppnKelWgta7GyZHsJt3bPqvtiQoTLPxQcYV6r7ZZ XWsA8LMBLpu6tPuN4jR7spZWji8NMJRVqyD3K9JrQbDGVBi1a3kV9Q2lHdHXB0NU rCLAZWCiRRU26DVnQbBcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1700752900; x=1700839300; bh=9kqxWd+7hmRtC WW6XUtyjavrsq2Rvj+oSjAe3gXFpT4=; b=piD2qoLSVxylglH/dhbB3d/wv3U5L wiB0Elbg/dIzH+gMXxede0PWD1GRrdo7KXkorcxVnRKrBAMkvTtwkaaeOF0r1Vj/ WCd2JDH7nUi0NtIg7ocsQ9gveqjmy3fUSxJaU1v6BVqYdfNlGZPaptXQYULVlVRT gKz6R/mWBMA9BZA7mga0UG/NqTDKVVCvooVmFRcdRSxXassHZEHeNYA74Qf4/SUa BwvXmwzsemTRJ02hYKpP4FDdvhKcCtewNBnjRhz7K45AthOp5kIaKE3gDDkDfiuX yIWywNIaKi058RiQCrRtx7E8UKtQmDNYI+Jkc+PBvUg04A+NzMyqRzIgw== X-ME-Sender: <xms:A25fZbqefc6WQiOP6n19GJlI91viVo28EblVTUfAhN5mqnmSwFXYJA> <xme:A25fZVrNha_V1T68iz8eVJp_g8xss8aVSf-hm50S8xR9kssdFgz7xD76FR91EWcWN 95x2MOjufeW_IrYoQ> X-ME-Received: <xmr:A25fZYOjz0RgMaNclx3zjzgA9xa_nxpzgKy_mxzWOH_e2jlhAgGEYRjmmSnZjQ2MFw9zuhY0BYVGn1It4SRaVUn6vyPssVRKokFQhFIA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkfgggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeeutdffheegleehffehgfejjeeivedtheeuuedujeeukefg keeljeegudeuieejveenucffohhmrghinhepvghlrdhimhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhi thhtohhnrdhnrghmvg X-ME-Proxy: <xmx:A25fZe6893SfPKY7N5_lZ3o1I_jdcQIQAddbGtnY7xU5nIqKu0TqXA> <xmx:A25fZa4J5Swqf_cyPF8NR96dRCXIIke0mR8GfiwJ7T8JGeg_U1QP9g> <xmx:A25fZWgPhjUM6SAyINfZ9acBYreopLk9sFyPHUJdJKSai-szRRwQPw> <xmx:BG5fZaFeej8bjlRDyTzQmsJAjZl2WvI7NWOxXj4Klt9OTYAsVasg3Q> Feedback-ID: i23c04076:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Nov 2023 10:21:39 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id 177CF7EB49B; Thu, 23 Nov 2023 15:21:37 +0000 (GMT) From: Sean Whitton <spwhitton@HIDDEN> To: Dmitry Gutov <dmitry@HIDDEN> Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command In-Reply-To: <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> (Dmitry Gutov's message of "Mon, 20 Nov 2023 04:17:47 +0200") References: <87y1f0cwbj.fsf@HIDDEN> <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> Date: Thu, 23 Nov 2023 15:21:37 +0000 Message-ID: <87a5r4bim6.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 67171 Cc: 67171 <at> debbugs.gnu.org, sbaugh@HIDDEN, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Hello, On Mon 20 Nov 2023 at 04:17am +02, Dmitry Gutov wrote: > Hi! > > On 14/11/2023 15:13, Sean Whitton wrote: >> X-debbugs-cc: dmitry@HIDDEN, juri@HIDDEN, sbaugh@HIDDEN >> Hello, >> 1. cd /home/spwhitton/src/some-project && emacs -q >> 2. (setopt project-switch-commands #'project-prefix-or-any-command) >> 3. (project-remember-project (project-current nil "/home/spwhitton/src/emacs/trunk/)) >> 4. C-x p p /home/spwhitton/src/emacs/trunk RET C-x v L >> VC prints the log of /home/spwhitton/some-project, not that of >> /home/spwhitton/src/emacs/trunk. > > I'm having difficulty reproducing this. Hmm. I can't reproduce it with 'emacs -q', but I can still reproduce with my init.el. I'm not sure whether something changed or whether I was wrong before. > On step 4, I'm asked for the project root (because *scratch* doesn't > have a current VC backend), but the input defaults to the directory > chosen in steps 3 and 4. And if I open a file-visiting buffer first, > then the prompt is skipped, [...] If I select *Messages*, which has a default-directory of "~/", then 'C-x p p RET ~/src/emacs/trunk RET C-x v L' prompts me for a directory, but the default value is "~/". Before I start bisecting my init, does anything else occur to you? As an aside, it doesn't seem good that whether or not step four prompts you for a directory depends on whether the current buffer happens to be visiting a file or not. Can we improve that, or is it inherent to the design of the new feature? Thanks. -- Sean Whitton
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at 67171) by debbugs.gnu.org; 20 Nov 2023 02:18:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 19 21:18:05 2023 Received: from localhost ([127.0.0.1]:52309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r4trR-0006kR-H8 for submit <at> debbugs.gnu.org; Sun, 19 Nov 2023 21:18:05 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:40823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1r4trM-0006jp-4h for 67171 <at> debbugs.gnu.org; Sun, 19 Nov 2023 21:18:03 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 33CF33200955; Sun, 19 Nov 2023 21:17:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 19 Nov 2023 21:17:52 -0500 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=fm2; t= 1700446671; x=1700533071; bh=uW7I2kJKB5EGC6/klc3fqF9h8QJyvdq1+7L OLaTAEok=; b=UrJ3dsTdtccTf9PZBiJdXyTYwhNMrjK2CFK5Fcj9SUXZBhFjvTk g0E2RKkkNlsRLwERrZqx7i5JVIbCQmO5VxX0ePIvIjABCYrJwOFuFTz6qYYnFmtj m6lP8Tl0+mvj8cQGND03dhrMaKGMdjbKF/bsFDvQozYTmjykUhy88pvcrvc80psE a8essdG+xyr8U0ao2IIna4Lv8UPJVw3JifEYctXm+kN7kgsVv4fjInar/LCK/8PB 31Bm28wk8+s9VaeTiioLkmvo6Ty9yu8jItRfpBAvjy00lLpiZ51j0RxvWbw7m+i3 GplThiwjyeiz8Q4x3I7giUqqwfwzcrN6HnQ== 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= 1700446671; x=1700533071; bh=uW7I2kJKB5EGC6/klc3fqF9h8QJyvdq1+7L OLaTAEok=; b=QVJq6L/Yc/JhunOTpVlGHr8+Qu0XjwlQGiGKN6fOEJqjPqLxftq 8KkL5LSaobUj30ym/mQhMocmBhe5RJVuDWGDuQfsRbURafjzPD/e3hUK8tTvI3JR o1BXYDMdYsM+WRbP5JBU0j/8Yc4NeDIp4cTuZY3/mr6HsmzVuCDb/pWiUpLO+H3U cmNTN5OWK/EVV1FCG5QOHeCyjOiktV1U2VSbqeteTspbjYMqRp9wpBLO7MIctoVS aqB4sR929kVaevLZVhF1uocu5Awtr7WR8QLYWyugZEAve8KmEKnH7jQ15xHe0d6O mCLtQ80GgOM6VhxzKYLiU3YsK0f+XN1461w== X-ME-Sender: <xms:z8FaZZ6oHAGgqoTOoTqFzBDwLdP2ILjbMR6ETPYpzMWnkssh8qlCzQ> <xme:z8FaZW7bT_a89z7U4NoWeg6zXMEmJswndf5HHd5IlB91g4tT6CucyAgLk5S8DZMz7 BYs0O5Drn3aLWtzzLc> X-ME-Received: <xmr:z8FaZQea7UMExYalO9EMbFYh6R2Op5FWi0v_pff7b2wgRUTKzqYhdCMfFoGg9np7ywCg-g> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeghedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: <xmx:z8FaZSJL5LnX4jx6g1mtd-S-YcxVYTR6nW8GwrdOqvBo0iaczphKxg> <xmx:z8FaZdJNUD19YAM4ulqRE3kLei1_ZCwJ_leQE6hmlc3kwE6YSGDoWw> <xmx:z8FaZbxqmptYfZx4FrSG1vPm3vK79nhD9dimIe6GABqvMFZt-64zgw> <xmx:z8FaZUWD1DEE1BPQ0FsOISL3lD64CAEG5YErfO6qfzsOeKkKkbJ0uw> Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Nov 2023 21:17:50 -0500 (EST) Message-ID: <a38f1a4c-ff3d-3c17-7b31-024359df01ed@HIDDEN> Date: Mon, 20 Nov 2023 04:17:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Content-Language: en-US To: Sean Whitton <spwhitton@HIDDEN>, 67171 <at> debbugs.gnu.org References: <87y1f0cwbj.fsf@HIDDEN> From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <87y1f0cwbj.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 67171 Cc: sbaugh@HIDDEN, juri@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.9 (---) Hi! On 14/11/2023 15:13, Sean Whitton wrote: > X-debbugs-cc: dmitry@HIDDEN, juri@HIDDEN, sbaugh@HIDDEN > > Hello, > > 1. cd /home/spwhitton/src/some-project && emacs -q > 2. (setopt project-switch-commands #'project-prefix-or-any-command) > 3. (project-remember-project (project-current nil "/home/spwhitton/src/emacs/trunk/)) > 4. C-x p p /home/spwhitton/src/emacs/trunk RET C-x v L > > VC prints the log of /home/spwhitton/some-project, not that of /home/spwhitton/src/emacs/trunk. I'm having difficulty reproducing this. On step 4, I'm asked for the project root (because *scratch* doesn't have a current VC backend), but the input defaults to the directory chosen in steps 3 and 4. And if I open a file-visiting buffer first, then the prompt is skipped, and I do see the log of the other project. Not the one used in step 1.
bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 14 Nov 2023 13:13:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 14 08:13:59 2023 Received: from localhost ([127.0.0.1]:60339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r2tEs-0003x0-Oo for submit <at> debbugs.gnu.org; Tue, 14 Nov 2023 08:13:59 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1r2tEq-0003wn-QN for submit <at> debbugs.gnu.org; Tue, 14 Nov 2023 08:13:57 -0500 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 <spwhitton@HIDDEN>) id 1r2tE5-0004gO-8o for bug-gnu-emacs@HIDDEN; Tue, 14 Nov 2023 08:13:09 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>) id 1r2tE3-0007Lp-Cc for bug-gnu-emacs@HIDDEN; Tue, 14 Nov 2023 08:13:09 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7D52D5C024A for <bug-gnu-emacs@HIDDEN>; Tue, 14 Nov 2023 08:13:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 14 Nov 2023 08:13:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1699967585; x=1700053985; bh=t0e3WRVlJvyzbEdj1895O0L6x 9cjldtBKDOl5VRlfXQ=; b=X3kC0HSF2nKOGjwuouD++xCuFmFBuAMgfJmIu1BWl GFy+vG+rY0Zk93EGLj56BNqQSHQnvFOfew4mZOqITDjWWwOQ3I/NoFIlcBzrBpgo 2+GdDSfTO1L4SWkcX0r8k4qv3am2ND4mkDNFQfT45V9/E+mJH/TXLfsP2vXGpCPI pPjZJNcsx07KOu7EwGAPND+dURSCs1Vc05O97ToQfEdgQr89aXgTFDr4NaWwWxnv E1otK1cLtA6w92dAdSTxQFKwJMlR7iDvKmMoX28xQR9H5l1w2HhmHJygfFr+uQmh t6TZZ1oMSDXOpASVQ5d3TS0lqNL2yvZaqMS4ifbumajGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version: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= 1699967585; x=1700053985; bh=t0e3WRVlJvyzbEdj1895O0L6x9cjldtBKDO l5VRlfXQ=; b=KKAJUrUDeHdBPIdwg6ZaBC5NSvFmDsqbAyxB3bGXBlwUCf8EQxl MtrXPHDD+rJqBhXZUR7BRV8uu1ZUk1VF31Ds0fMxczI07QuDIjOtM9j/dwk3lzWW lPY0fobfczhEON0raVhGMp7YpqJhpuew60htS5oujxEbOs25IvjLQ6oM6piXDvgF /UpYBEbhHFQB72ejt82MhDx7EGtit9sNm7qTYc4hbYIGtSyDBd9cKKcs/qaJOWfF lA3Z5WQcYuBuRWeyNB0yL2YM6Y3Bo9FzePUoKPwcTWXScCwW1ZquuigWQ+s3dyLU x11W+W44BXjjkg2p1N4vCmr3p9dcNxm7uzQ== X-ME-Sender: <xms:YXJTZXZn1WmajMDVELeQ3QLX9ihPgzuT5rZji_uwIIDO70wbkMSpjg> <xme:YXJTZWYtj8eZjtka2u1SQ-HLqFgOamgL2WdM-zpKo3GSR3JTFY-IsIEMk4-34ncAR YHhjLfAhi1JqK8yXA> X-ME-Received: <xmr:YXJTZZ9QKOCW0bL-n4ONLaFuYHbcTO3o6ckQUEIw4IhNZBPg95nCfuSGBs0T5T6Q2_O3tZS8AZn-> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefvddggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgesthdttddttd ertdenucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhp fihhihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeffgfehgefggfehuedvte fhkedutdfggfdtueekgeektdetffdtgefhvdfgtdejleenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhith htohhnrdhnrghmvg X-ME-Proxy: <xmx:YXJTZdqZECN20JSZX07VCkzi0-kDBsFeQXefBuhYQq9m_EDVkX2u8A> <xmx:YXJTZSoih_V1hLiPtPUJNXJ2sAZEsCFvuTda3hDo0TtXsrtuq6t1Ig> <xmx:YXJTZTTk2V7cZCneYLjqN3IDIJvyXnubJn1pMwyLl__85KdmyM1vhQ> <xmx:YXJTZQFnKQAX4ZMHafPJrLkvgIkwB-heWciY5dbjDPBNNFcL7dJ5Mg> Feedback-ID: i23c04076:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <bug-gnu-emacs@HIDDEN>; Tue, 14 Nov 2023 08:13:05 -0500 (EST) Received: by melete.silentflame.com (Postfix, from userid 1000) id 3C4CD7E00FF; Tue, 14 Nov 2023 13:13:04 +0000 (GMT) From: Sean Whitton <spwhitton@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Date: Tue, 14 Nov 2023 13:13:04 +0000 Message-ID: <87y1f0cwbj.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=spwhitton@HIDDEN; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.3 (/) X-debbugs-cc: dmitry@HIDDEN, juri@HIDDEN, sbaugh@HIDDEN Hello, 1. cd /home/spwhitton/src/some-project && emacs -q 2. (setopt project-switch-commands #'project-prefix-or-any-command) 3. (project-remember-project (project-current nil "/home/spwhitton/src/emacs/trunk/)) 4. C-x p p /home/spwhitton/src/emacs/trunk RET C-x v L VC prints the log of /home/spwhitton/some-project, not that of /home/spwhitton/src/emacs/trunk. -- Sean Whitton
Sean Whitton <spwhitton@HIDDEN>
:dmitry@HIDDEN, juri@HIDDEN, sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN
.
Full text available.dmitry@HIDDEN, juri@HIDDEN, sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN
:bug#67171
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.