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: Thu, 09 May 2024 09:24:38 +0300 Organization: LINKOV.NET Message-ID: <867cg33521.fsf@mail.linkov.net> References: <86le501ykg.fsf@mail.linkov.net> <86jzkhe81b.fsf@mail.linkov.net> <208c7a05-6cfe-40c2-af54-187967348686@gutov.dev> <86le4tz88d.fsf@mail.linkov.net> <865xvsjklh.fsf@mail.linkov.net> <861q6esvhl.fsf@mail.linkov.net> <86o79ieqt1.fsf@mail.linkov.net> <90f9ec8e-0ab0-40c8-9ae8-e745f2ad72e3@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25862"; 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 Thu May 09 08:32:30 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 1s4xKQ-0006hE-PJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 May 2024 08:32:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4xK8-0000oH-6u; Thu, 09 May 2024 02:32:19 -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 1s4xJZ-0000lM-PU for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 02:31:41 -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 1s4xJY-0005qV-Vt for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 02:31:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4xJy-0003mB-Ox for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 02:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 May 2024 06:32:02 +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.171523630914482 (code B ref 70577); Thu, 09 May 2024 06:32:02 +0000 Original-Received: (at 70577) by debbugs.gnu.org; 9 May 2024 06:31:49 +0000 Original-Received: from localhost ([127.0.0.1]:53342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4xJk-0003lW-Vr for submit@debbugs.gnu.org; Thu, 09 May 2024 02:31:49 -0400 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:37113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4xJd-0003kw-3E for 70577@debbugs.gnu.org; Thu, 09 May 2024 02:31:44 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 2ECAF60003; Thu, 9 May 2024 06:31:08 +0000 (UTC) In-Reply-To: <90f9ec8e-0ab0-40c8-9ae8-e745f2ad72e3@gutov.dev> (Dmitry Gutov's message of "Tue, 7 May 2024 22:23:53 +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:284717 Archived-At: >> can be changed to read the project before reading the command >> with arguments: >> (defun other-project-prefix () >> (letrec ((root (funcall project-prompter)) >> (depth (minibuffer-depth)) >> (echofun (lambda () "[switch-project]")) >> (around-fun >> ... > > Yeah, it can be made tweakable like that, although I'd suggest first trying > to use it as-is for a little bit. I tried but still can't use it because its sequence of reading the project is incompatible with old 'project-switch-project', so it's difficult to switch to the new sequence. > If you prefer to read the project first, would see a lot of advantage to > the new command? I suppose 'C-h' working is the only plus. The advantage is that the new command paves the way for implementing the support of 'C-x p P C-x 4 p f'.