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: Fri, 10 May 2024 09:43:52 +0300 Organization: LINKOV.NET Message-ID: <86a5kyp7dj.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> <86v83n35km.fsf@mail.linkov.net> <2fe15f19-1d70-4104-b1cc-d54055268f00@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="11732"; 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 Fri May 10 08:56:24 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 1s5KB5-0002rp-P3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 May 2024 08:56:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5KAm-0002In-OV; Fri, 10 May 2024 02:56:04 -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 1s5KAl-0002Ic-VI for bug-gnu-emacs@gnu.org; Fri, 10 May 2024 02:56:03 -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 1s5KAl-0005Lm-KN for bug-gnu-emacs@gnu.org; Fri, 10 May 2024 02:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5KAj-0007xh-Nd for bug-gnu-emacs@gnu.org; Fri, 10 May 2024 02:56: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: Fri, 10 May 2024 06:56: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.171532414830583 (code B ref 70577); Fri, 10 May 2024 06:56:01 +0000 Original-Received: (at 70577) by debbugs.gnu.org; 10 May 2024 06:55:48 +0000 Original-Received: from localhost ([127.0.0.1]:41610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5KAV-0007xD-Kb for submit@debbugs.gnu.org; Fri, 10 May 2024 02:55:47 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5KAQ-0007x3-JN for 70577@debbugs.gnu.org; Fri, 10 May 2024 02:55:45 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id B8AC8FF802; Fri, 10 May 2024 06:55:36 +0000 (UTC) In-Reply-To: <2fe15f19-1d70-4104-b1cc-d54055268f00@gutov.dev> (Dmitry Gutov's message of "Fri, 10 May 2024 04:46:27 +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:284802 Archived-At: >>>> Speaking of the implementation strategy, though, I think the current >>>> other-project-prefix implementation still doesn't work well together with >>>> project-other-*-command. >>> I suppose we could just blacklist some known prefix commands (*) in the >>> same form where we now compare (eq this-command 'other-project-prefix), but >>> it would be nice to distinguish prefix commands from "real" ones somehow. >>> >>> (*) project-other-window-command, project-other-frame-command, >>> project-other-tab-command, some others? >> I remember that other-commands worked in one of your previous patches. > > Maybe only when they went down the > > (if (< emacs-major-version 30) > > code path? Nope, only 30. (But it's possible that I mistyped 'C-x p p' instead of 'C-x p P'.) > Conversely, calling project--other-place-prefix ends the current command, > and the dynamic binding ends there too. set-transient-map has the arg KEEP-PRED that could be used to keep the map for a sequence of commands, but its use might be tricky.