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#70577: [PATCH] New command other-project-prefix Date: Fri, 26 Apr 2024 13:59:48 +0300 Message-ID: References: <86le501ykg.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="10402"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70577@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 26 13:01:52 2024 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 1s0JKx-0002SM-3O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Apr 2024 13:01:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0JKJ-0008TL-KM; Fri, 26 Apr 2024 07:01:12 -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 1s0JK1-0008MU-C0 for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 07:00:54 -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 1s0JK1-0008Gs-3P for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 07:00:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s0JKI-0005UH-UK for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2024 07:01:10 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2024 11:01:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70577-submit@debbugs.gnu.org id=B70577.171412923320699 (code B ref 70577); Fri, 26 Apr 2024 11:01:10 +0000 Original-Received: (at 70577) by debbugs.gnu.org; 26 Apr 2024 11:00:33 +0000 Original-Received: from localhost ([127.0.0.1]:34065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0JJb-0005N8-78 for submit@debbugs.gnu.org; Fri, 26 Apr 2024 07:00:31 -0400 Original-Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]:38311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0JJQ-0005Jq-6j for 70577@debbugs.gnu.org; Fri, 26 Apr 2024 07:00:22 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 7D465114017A; Fri, 26 Apr 2024 06:59:52 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 26 Apr 2024 06:59:52 -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:subject:subject:to:to; s=fm2; t=1714129192; x=1714215592; bh=t0n/8OziG1RBPA9kARf2V06PM7vDg21ija1uyaTfcDc=; b= tAneAwjJh2AN+Gnm2dfUcXd2twSYhSUeieH7zURriH38EYBwH2bjeGMV4pPQhPQR Hx9she5PeLpFisffeyxv3vV8Eb+VtR3xCO93KfuIHrRrbtDsKyC7NTObEVfqMvIz OjSO3ZtTXHj6O8BaV60jmO+Pt1EBQ2zXORp0Q9Yc9XaoMuxgid6Xp9gxacYf4UG/ o7o5vA1GVd0E3kZpBLjx//rkQ+9S33IqLXLDD6p14o1TYYoTuZCkMoYCP4wcexyn FpDCX6myP4tiJZD7BfyN8juvtpUwihLhPmXzUUk39nEX4yLWrn6io2P1M/tHZTMB rnlb8pj2NPkr0EFQ74oBXg== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714129192; x= 1714215592; bh=t0n/8OziG1RBPA9kARf2V06PM7vDg21ija1uyaTfcDc=; b=W kH3yioifbumAOOUbKratFQRt/d28HAifDMTcd03Nv2nf8lgZi7yNsDcdLTlJ3+ok 6rovjGxTbwifaZ9I4miBkGWyivRM9IR0Ul72zehLlvBcTdoMieJRnGwQpdBSYcvh F95fvD/3oAO3GtF0ZQsJNMiHsdDRr0xgmsTPXQcVXM66Keu6J7Cf4pdVsflqT0Pa MOGpuGyLX54GDpdjRzY2t01S8Fi2UUvNZ5hraCcDE/+CZqZ0P7yye7P+GxJ5c+es pFxehKQxik0zn51KuGlp1yMrn/YvmKPdLih5t8hM4ho7q1OS9j3907zEN21yAs46 +tKOMUVtGzSzumK4WCN8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelledgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepffeifedvleeukedtgfelieegudfgveekfeejveejffetffeuueeugefhveei uddvnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Apr 2024 06:59:51 -0400 (EDT) Content-Language: en-US In-Reply-To: <86le501ykg.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:283979 Archived-At: On 26/04/2024 09:09, Juri Linkov wrote: >> This is based on Juri's patch in >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63648#161, but the idea is >> more focused: to switch the order of events, and first read the full key >> sequence, and then prompt for the project and the command arguments. Like >> we also discussed in the past. > > I'm not a fan of reading the full key sequence bypassing the event loop. That's what the current code does. While the patch tries to change that. >> And to try to reuse the even loop in the more natural way. Unfortunately, >> 'C-h' doesn't work here (when called in the middle of the sequence) - I'm >> not sure why. The rest of the behavior seems to work as expected. > > 'C-h' can't work since 'C-x p p' is bound to a command. Hmm, I wonder how hard it'd be to change that. >> So this can be a new alternative for the 'C-x p p' binding as well. > > I guess there could be 2 new alternative options for 'project-switch-commands': > > 1. read the full key sequence > 2. use the event loop with set-transient-map > > Although I'm already completely content with the existing option > 'project-prefix-or-any-command' of 'project-switch-commands'. This one is indeed an experiment. It just seems that being able to type the full sequence first is more ergonomically advantageous. But overall this (adding a +1 alternative) is probably only worth it if we can make 'C-h' work like normal.