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#63648: 29.0.90; project.el: with switch-use-entire-map, switch-project errors on non-project commands Date: Thu, 2 Nov 2023 23:33:54 +0200 Message-ID: References: <2e34e515-a921-a969-0915-bea94c745f8b@gutov.dev> <868r9258oi.fsf@mail.linkov.net> <86edishisp.fsf@mail.linkov.net> <6fc81cbf-a21f-c5b4-aa56-e8518b8570d7@gutov.dev> <86msxgatuy.fsf@mail.linkov.net> <86y1gynr2u.fsf@mail.linkov.net> <7c72fd8c-c3f6-a974-8a4b-a081f7a9fe1a@gutov.dev> <86ttqmv7c6.fsf@mail.linkov.net> <56e7d865-0456-db7d-3a5d-1235e62508bf@gutov.dev> <865y31onju.fsf@mail.linkov.net> <8562bdad-e487-886a-af49-7f67d8d14b7a@gutov.dev> <86msw9g5yb.fsf@mail.linkov.net> <56909bdd-14ee-f68c-178f-5057efcd6150@gutov.dev> <86wmva7iey.fsf@mail.linkov.net> <86bkckwnf8.fsf@mail.linkov.net> <86h6mag077.fsf@mail.linkov.net> <86v8akoyve.fsf@mail.linkov.net> 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="3797"; 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: Spencer Baugh , 63648@debbugs.gnu.org, sbaugh@catern.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 02 22:34:47 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 1qyfKv-0000ed-Ek for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Nov 2023 22:34:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyfKf-0008Q4-Fv; Thu, 02 Nov 2023 17:34:29 -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 1qyfKd-0008Pn-D2 for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2023 17:34:27 -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 1qyfKd-0003lP-5H for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2023 17:34:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qyfLC-0002eY-1x for bug-gnu-emacs@gnu.org; Thu, 02 Nov 2023 17:35: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: Thu, 02 Nov 2023 21:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63648 X-GNU-PR-Package: emacs Original-Received: via spool by 63648-submit@debbugs.gnu.org id=B63648.169896089010176 (code B ref 63648); Thu, 02 Nov 2023 21:35:01 +0000 Original-Received: (at 63648) by debbugs.gnu.org; 2 Nov 2023 21:34:50 +0000 Original-Received: from localhost ([127.0.0.1]:56296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyfKv-0002dz-RU for submit@debbugs.gnu.org; Thu, 02 Nov 2023 17:34:50 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyfKq-0002dd-MW for 63648@debbugs.gnu.org; Thu, 02 Nov 2023 17:34:45 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E46275C01C4; Thu, 2 Nov 2023 17:33:58 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 02 Nov 2023 17:33:58 -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=fm2; t= 1698960838; x=1699047238; bh=F2smjJAGqa4QLADqrzcs/q6hdcn+zlGeywa uwbCJOsk=; b=OC/PUHcnwvgL3QZOioerF3bLIDjXCKOZWhGLbHvoAJ4yMa42TP+ ThJCfcq6ERl//ObTOxCyjRQ0U9L5mvBFg4D2tBmqoqMQCQlDJ3eieWyWdkYx0jd9 MQFsytwiMP/oWL8lcxX4RmhX15J4GPVJdUYpe+Zyed/hLyxftfFvROb5ZrxPq/Qs qRJYnMLZGohkURTbrf+HJt8Fzdumm/H3VuCsRnz0noJKWe3ngmH5QcyH1ILh5o1G eqkDGxS1zxL8MYmLblVfwve5BkbhohKq3IMvbgTKtTAo0PXquUXBq94G+EUdOko4 EJYMhZEKMMXKi2bY1YZXEBY4xjSQo9or6RA== 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=fm3; t= 1698960838; x=1699047238; bh=F2smjJAGqa4QLADqrzcs/q6hdcn+zlGeywa uwbCJOsk=; b=T87SEBg6V9t4xBki+ippP9/HzMyJq6XAlEZSKUfRlhuC5wKgvR5 c4XszfA5IpmVpM98lq1NQtjtQEPjyPkBD/rHHTkircWMDN0ThCDZn3745E7+gH4/ VhbAnwf53ZqkNZ5oPYB8YPUuvJcbFHvvI/9hy6lKaKN1FPN2hH4DaiI8mecRpAhy 4oRN/vw+piHNh39AMzHvV5WwUcjrYfIQJQ9e+Yi1xraI1D5smRmJ9jYeQzCaknJ2 Zq5VDQ06YVpflneUIIuw8gnHKpZBey8tyNgV06SZ0/9auemAV0WfX5JH8TgEp5+O nrmTPB4wBkIBj7zSjJmLY42D0dfHgky5Q1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddtiedgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Nov 2023 17:33:56 -0400 (EDT) Content-Language: en-US In-Reply-To: <86v8akoyve.fsf@mail.linkov.net> 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:273681 Archived-At: On 02/11/2023 19:20, Juri Linkov wrote: >> How about this, then? >> >> project-switch-use-global-map is obsoleted, all variations are accessible >> through customizing project-switch-commands. Should have better >> discoverability for project-prefix-or-any-command than simply having it >> included. > > I don't know, it's extra trouble for users to migrate > from the obsoleted project-switch-use-entire-map. > But maybe ok. I couldn't find a better alternative to keep the behavior compatible. Either we have the user customize an existing var (this was the option where they'd set project-switch-commands to `project-prefix-or-any-command', which you didn't like), or we would add a yet another custom var which would, conceptually, conflict with the two existing ones. Unifying all three alternatives in one option seems like the logical choice. >> I don't like having a prompt that requires prior knowledge to use, but fair >> enough, let's just use [executing in ...] for now. Perhaps someone will >> suggest an alternative later. >> >> The new revision is attached, have a look. > > Thanks, tried, it works nicely. > > One minor question is why project-prefix-or-any-command > is a command. Would anyone want to bind it in project-prefix-map, > like project-any-command that makes sense to run commands in root. It's done this way basically for the ease and brevity of implementation. But someone could also advise it, or copy and do their own alternative, e.g. changing the prompt. Hopefully having this piece of behavior so localized will make it easier to grok for future contributors as well.