From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Date: Thu, 23 Nov 2023 15:21:37 +0000 Message-ID: <87a5r4bim6.fsf@melete.silentflame.com> References: <87y1f0cwbj.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14886"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 67171@debbugs.gnu.org, sbaugh@catern.com, juri@linkov.net To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 23 16:22:30 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 1r6BXA-0003aA-0s for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Nov 2023 16:22:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6BWj-0000VF-NQ; Thu, 23 Nov 2023 10:22:01 -0500 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 1r6BWg-0000Uz-Jf for bug-gnu-emacs@gnu.org; Thu, 23 Nov 2023 10:21:58 -0500 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 1r6BWg-0004UD-Bh for bug-gnu-emacs@gnu.org; Thu, 23 Nov 2023 10:21:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6BWj-0002WI-UR for bug-gnu-emacs@gnu.org; Thu, 23 Nov 2023 10:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Nov 2023 15:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67171 X-GNU-PR-Package: emacs Original-Received: via spool by 67171-submit@debbugs.gnu.org id=B67171.17007529139671 (code B ref 67171); Thu, 23 Nov 2023 15:22:01 +0000 Original-Received: (at 67171) by debbugs.gnu.org; 23 Nov 2023 15:21:53 +0000 Original-Received: from localhost ([127.0.0.1]:34677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6BWa-0002Vu-M8 for submit@debbugs.gnu.org; Thu, 23 Nov 2023 10:21:53 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:44947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6BWY-0002Vg-7m for 67171@debbugs.gnu.org; Thu, 23 Nov 2023 10:21:51 -0500 Original-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) Original-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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehfedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkfgggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeeutdffheegleehffehgfejjeeivedtheeuuedujeeukefg keeljeegudeuieejveenucffohhmrghinhepvghlrdhimhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhi thhtohhnrdhnrghmvg X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Nov 2023 10:21:39 -0500 (EST) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 177CF7EB49B; Thu, 23 Nov 2023 15:21:37 +0000 (GMT) In-Reply-To: (Dmitry Gutov's message of "Mon, 20 Nov 2023 04:17:47 +0200") 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:274810 Archived-At: 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@gutov.dev, juri@linkov.net, sbaugh@catern.com >> 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