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: Tue, 21 May 2024 09:08:20 +0300 Organization: LINKOV.NET Message-ID: <86jzjneoju.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> <938582b5-0f86-4cb0-8bfe-afb26af0e8c9@gutov.dev> <86eda4hpyh.fsf@mail.linkov.net> <1b247d37-d1da-462a-9582-f7f7ff689d8f@gutov.dev> <86fruja9bf.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="20808"; 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 Tue May 21 08:10:27 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 1s9Ihf-0005Fc-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 May 2024 08:10:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9IhG-00034l-CY; Tue, 21 May 2024 02:10:02 -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 1s9IhB-000349-Hn for bug-gnu-emacs@gnu.org; Tue, 21 May 2024 02:09:57 -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 1s9IhB-0005ny-7j for bug-gnu-emacs@gnu.org; Tue, 21 May 2024 02:09:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9IhF-0003G5-RN for bug-gnu-emacs@gnu.org; Tue, 21 May 2024 02:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 May 2024 06:10:01 +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.171627178212503 (code B ref 70577); Tue, 21 May 2024 06:10:01 +0000 Original-Received: (at 70577) by debbugs.gnu.org; 21 May 2024 06:09:42 +0000 Original-Received: from localhost ([127.0.0.1]:47238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9Igw-0003Fb-DJ for submit@debbugs.gnu.org; Tue, 21 May 2024 02:09:42 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:45175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9Igu-0003FP-6i for 70577@debbugs.gnu.org; Tue, 21 May 2024 02:09:41 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 9ECE9E0003; Tue, 21 May 2024 06:09:07 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Tue, 21 May 2024 05:31:28 +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:285517 Archived-At: > Here's a patch using symbol properties that makes the prefix commands work > combined in arbitrary order. At least according to my limited testing - and > only the commands that have this property set, of course. This works until I moved project-prompter to the beginning, then 'C-x 5 p p' doesn't work with this: (letrec ((root (funcall project-prompter)) (depth (minibuffer-depth)) (echofun (lambda () "[switch-project]")) (around-fun Maybe there is a better place? > Something to discuss: > - A better name for the property? Maybe something longer would be more > obvious for an accidental reader. If it makes sense to use it outside of project.el then 'prefix-command' is fine. > - Applying it through 'declare' forms could be a more self-contained > approach. This could be added later as well.