From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#70577: [PATCH] New command other-project-prefix Date: Sun, 28 Apr 2024 19:51:04 +0300 Organization: LINKOV.NET Message-ID: <86jzkhe81b.fsf@mail.linkov.net> References: <86le501ykg.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36819"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 70577@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 28 19:08:17 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 1s180e-0009Ll-HV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Apr 2024 19:08:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1809-0007L7-56; Sun, 28 Apr 2024 13:07:45 -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 1s1808-0007Ki-6F for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2024 13:07:44 -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 1s1807-0002Vv-MF for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2024 13:07:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s180R-0001SA-3u for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2024 13:08:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Apr 2024 17:08:03 +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.17143240825578 (code B ref 70577); Sun, 28 Apr 2024 17:08:03 +0000 Original-Received: (at 70577) by debbugs.gnu.org; 28 Apr 2024 17:08:02 +0000 Original-Received: from localhost ([127.0.0.1]:51269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s180P-0001Rn-EJ for submit@debbugs.gnu.org; Sun, 28 Apr 2024 13:08:02 -0400 Original-Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]:60005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s180K-0001RO-0I for 70577@debbugs.gnu.org; Sun, 28 Apr 2024 13:07:58 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 191E9FF802; Sun, 28 Apr 2024 17:07:28 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Fri, 26 Apr 2024 19:20:58 +0300") X-GND-Sasl: juri@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:284101 Archived-At: > On 26/04/2024 13:59, Dmitry Gutov wrote: >> 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. > > Sorry, I forgot to attach the actual patch. Thanks. > +(defun other-project-prefix () Something is wrong here. I bound 'other-project-prefix' to 'C-x p P'. Then typing 'C-x p P C-x d' asked a directory name, then later after selecting a project asked for the directory name again. Then some advice remains unremoved. Ok, will test more.