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, 10 May 2024 04:46:27 +0300 Message-ID: <2fe15f19-1d70-4104-b1cc-d54055268f00@gutov.dev> 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> 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="5213"; 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 May 10 03:47:26 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 1s5FM5-00015b-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 May 2024 03:47:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5FLm-0004Wl-ER; Thu, 09 May 2024 21:47:06 -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 1s5FLk-0004WF-8C for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 21:47:04 -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 1s5FLj-0005Pq-S2 for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 21:47:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5FLh-0004ZH-Mf for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 21:47:01 -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, 10 May 2024 01:47: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.171530559917547 (code B ref 70577); Fri, 10 May 2024 01:47:01 +0000 Original-Received: (at 70577) by debbugs.gnu.org; 10 May 2024 01:46:39 +0000 Original-Received: from localhost ([127.0.0.1]:41464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5FLL-0004Yx-4n for submit@debbugs.gnu.org; Thu, 09 May 2024 21:46:39 -0400 Original-Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]:51543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5FLH-0004Yr-AM for 70577@debbugs.gnu.org; Thu, 09 May 2024 21:46:38 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.west.internal (Postfix) with ESMTP id BB8C3180019C; Thu, 9 May 2024 21:46:30 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 09 May 2024 21:46:30 -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=1715305590; x=1715391990; bh=YqpHEjLl/3o0BQP+okDqquV0fjdscWCjzfID0yajRVU=; b= XHQ4AqQsoZefhb4HubVWLR2VI7RGg9cH78AFxqHSYH8UUpP/TzhS4bNlF66fXf8W LOFomZ7x7J9bPo9MpBwiVNeIfD960VaFNleuoOIONsruMR7Gy+w98sNogtLeYolK xy5dtvewTGdeeMmdrbZDBgK04Jk8vtIePjxLu1h2/wtL9RHL26DZgCTQALyoSFXp WZXi/AjdHCZ9unZyq2RTP6vHjyZjOGcejJ9Vf5ZZ7Xb0KwnUgCLsIU4ZVap79ouF l0AjoomdJfdFn5y9Rhf+U/K4E58OJvoQNK4352I7lAVJplRNbVMFV+kkSpVGclGC P5lsMUFQdIj2aYPhhDpfAg== 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=1715305590; x= 1715391990; bh=YqpHEjLl/3o0BQP+okDqquV0fjdscWCjzfID0yajRVU=; b=D n8fi7MFeIYEY3kNt09mqQZfAoOWjaat3+i08iWjkUW/yVDYLK1/aWzLbsmP0N2v6 3UoqDMF/jrTOrfmrTCz2jPicuzB4qqp2DT6qB2GYoSJbPbNqVxrcdI6aUQdXrxf0 qUEq02xAO/aON2WZnyw/vYHq4uz+EFYejuBweCRa9OKHbZyU5ZxZy/cTxUvTALKM tDShNjvZ448MbQekPxlj1Y5df1YKHjA11HKyG31XGo4kOmVIcB0PHN2HW1AS68cA TRTvxCd2lEbaNEd49kfnSDLoSdCgAHiI6jpDtmzV7+TU9ftSNh2Ph+KlHepwsDPK nO/W3gZtTeprb30w7TciA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefgedgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 May 2024 21:46:29 -0400 (EDT) Content-Language: en-US In-Reply-To: <86v83n35km.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:284789 Archived-At: On 09/05/2024 09:20, Juri Linkov wrote: >>> 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? Like project-any-command, project--other-place-command uses read-key-sequence and then invokes the command, which means that whatever dynamic binding was in effect, stays in effect for the "next" command. Conversely, calling project--other-place-prefix ends the current command, and the dynamic binding ends there too.