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: Sat, 21 Oct 2023 21:43:14 +0300 Message-ID: <1fe0a2b1-ad92-cac0-42b3-9922f04ca333@gutov.dev> References: <86edj6hyem.fsf@mail.linkov.net> <8634zitwoy.fsf@mail.linkov.net> <50d46d30-a796-b855-0d4c-690d6cb3d15b@gutov.dev> <86il88x9cy.fsf@mail.linkov.net> <4367c45c-95b3-6a29-4ba3-068a3c748452@gutov.dev> <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> <87r0lqu7ho.fsf@catern.com> <6149d7a4-f47e-2ac4-91cf-fe144d1a4c63@gutov.dev> <6fb5f40a-48cf-c5fc-d609-df90790f66e6@gutov.dev> <78eb0b42-9603-b668-90e2-114e38e6f9ff@gutov.dev> 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="38810"; 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: sbaugh@catern.com, 63648@debbugs.gnu.org, Juri Linkov To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 21 20:43:42 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 1quGwn-0009tF-HM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Oct 2023 20:43:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quGwi-0007dR-9e; Sat, 21 Oct 2023 14:43:36 -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 1quGwg-0007an-OS for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 14:43:34 -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 1quGwg-0007jb-G9 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 14:43:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quGx8-00082o-CF for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 14:44: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: Sat, 21 Oct 2023 18:44:02 +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.169791383230889 (code B ref 63648); Sat, 21 Oct 2023 18:44:02 +0000 Original-Received: (at 63648) by debbugs.gnu.org; 21 Oct 2023 18:43:52 +0000 Original-Received: from localhost ([127.0.0.1]:45042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quGwy-000828-4p for submit@debbugs.gnu.org; Sat, 21 Oct 2023 14:43:52 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quGww-00081t-7J for 63648@debbugs.gnu.org; Sat, 21 Oct 2023 14:43:50 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 257B65C020D; Sat, 21 Oct 2023 14:43:17 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 21 Oct 2023 14:43:17 -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=fm1; t= 1697913797; x=1698000197; bh=vH764ndV5OaantIeaP/mndV+xVP2n5JHLNM jCcxSnmI=; b=rfYvAfTGe+kWlbiF9Xc8nApcWAhytBwC0/9HY3cJ1NqSuyh5QBP nlgoD+dN2n0apolGUwHrVMUbYdlrRVZYoBFGueD5q1Du9I55YlfoiwhS7y0eDJ1O CX8/vBpiBPggTTyOAFcvgCOapprhf241oxVkZ0KuutH767N8EXYvSowKfNMW1EpC 55H730F/zmVqlbN4Iz94F9o6ZERsdAx7oaOI3PIppnYVLkWAhOAnRUlFiLJsdt3T Jrkjis1HPOFooK7nzizjT+iCbSPdErOI8BMdBevGj0awcON7LIJVCFv9XwawdQQ3 rk8dTDXq+kUsh2o5CHizvB6qkRVxe04VIHw== 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= 1697913797; x=1698000197; bh=vH764ndV5OaantIeaP/mndV+xVP2n5JHLNM jCcxSnmI=; b=I3g5ucUL+3swBfMSYbMFkqqokHanjV50dBoYfYxChKhRCkhq/wq E3uawk3lCIr6Hc8wnHWZdaF1w2a9AovcJVsNGcw2BG7K9uNWoTc17kirnThvNnJj 1o+i8E9rRwcugqe4ORkvUk8YXXTMas4RF3EoD2PkOyb82TuVljRqn71dCSFOs7dm FnpaBUkbJVkp58FCbgzghgK50p+lsQ1sZMirHeqQBIoprKmJ2T9uoLSnWm/uuY4w 8cGEAub9RAMhpwf4zeqjL6GTjrbH/1oyf8x0mzD8YoTHkqeypmGR/yxHhOdlLrdZ RRbpwUCrR7TBoeo++YNXLy29I1lQOtoXyDA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkedtgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 21 Oct 2023 14:43:15 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:272930 Archived-At: On 21/10/2023 19:09, Spencer Baugh wrote: >>>> BTW, when project-switch-use-entire-map is non-nil, we should probably >>>> display something informative to the user (e.g. some abbreviated list >>>> of all the bindings in project-prefix-map?), so that the users don't >>>> mistake the the meaning of the option, and see at least some of the >>>> keys they can press at that point, instead of the incorrect command >>>> menu. >>> True. >>> Automatically generating this would be kind of like which-key. >> >> I pushed a version of this to master, but one that looks more like >> read-multiple-choice. Reimplementing which-key would be too much, and >> unfortunately I don't see a way to integrate it when available either. > > which-key is in GNU ELPA. So possibly it could be brought into core, if > we're finding that we need it. Does that seem plausible? I could bring > it up on emacs-devel, since I think which-key would be an excellent > addition to core for other reasons too. Even if it were here, I'm not sure what the integration would look like, code-wise. >>>> The latter probably means that we cannot make just any global key >>>> sequence work in the *Project List* buffer (or e.g. have 'M-x gnus' >>>> start in a different directory depending on which line point current >>>> is on). But we might have a binding for a prefix command which would >>>> make sure the next one is run within the project room as its >>>> default-directory. Binding 'project-any-command' (or a variation of >>>> it) to 'o' seems natural in there too. Do you disagree? >>> Hm, I think changing default-directory in project-list based on >>> point is >>> very discoverable. Let me explain why: When you hit "g" in the >>> project-list buffer, I expect that it would operate on the project at >>> point. That seems obvious and unobjectionable. So users will be used >>> to being able to operate on different projects based on the value of >>> point. And it is (in my experience) a straightforward extension from >>> that to running arbitrary commands on different projects based on the >>> value of point. >> >> 'g' is probably fine. 'f' and the rest of such keys too. Though 'n' >> and, more importantly, 'p' will likely have different expectations. > > Yes, I was thinking we'd have 'n' and 'p' do next/previous-line. 'n' is > unused and 'p' is probably not necessary: you can just do C-s instead, > or possibly (if we set it up) use imenu, M-g i. > > Possibly we should avoid using C-x p n, to reserve 'n' for this. (Or > maybe C-x p n could be something that is also not necessary in the > project-list buffer... maybe C-x p n could run project-list? Maybe it > could be called project-navigate?) The latter -- sure, probably.