From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 18 13:25:04 2024 Received: (at submit) by debbugs.gnu.org; 18 Feb 2024 18:25:04 +0000 Received: from localhost ([127.0.0.1]:37433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rblqZ-0003TD-MN for submit@debbugs.gnu.org; Sun, 18 Feb 2024 13:25:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:53956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rblQi-0001mW-L4 for submit@debbugs.gnu.org; Sun, 18 Feb 2024 12:58:21 -0500 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 1rbOws-0000uA-5Q for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 12:58:02 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbOwp-0006GS-F7 for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 12:58:01 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 450CC60002 for ; Sat, 17 Feb 2024 17:57:53 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: project-any-command with overriding-local-map Organization: LINKOV.NET X-Debbugs-Cc: Dmitry Gutov Date: Sat, 17 Feb 2024 19:17:37 +0200 Message-ID: <86frxrj83q.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.195; envelope-from=juri@linkov.net; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) With 'project-switch-commands' customized to 'project-prefix-or-any-command' tried to do such a useful thing as applying a diff to a sibling project with the same source tree: C-x v = C-x p p RET C-c RET a (diff-apply-buffer) But it failed with an undefined key. And indeed evaluating in a *vc-diff* buffer: M-: (let ((overriding-local-map project-prefix-map)) (key-binding (read-key-sequence "? ") t)) returns nil for any longer than 1-key binding such as 'C-c C-a' or 'C-c RET a'. Then found this patch fixes the problem completely (no idea why): diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index aa92a73336e..fe866312931 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1871,7 +1874,7 @@ project-any-command (interactive) (let* ((pr (project-current t)) (prompt-format (or prompt-format "[execute in %s]:")) - (command (let ((overriding-local-map overriding-map)) + (command (let ((overriding-terminal-local-map overriding-map)) (key-binding (read-key-sequence (format prompt-format (project-root pr))) t))) From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 11:02:27 2024 Received: (at 69242) by debbugs.gnu.org; 19 Feb 2024 16:02:28 +0000 Received: from localhost ([127.0.0.1]:43256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc667-0001kI-EU for submit@debbugs.gnu.org; Mon, 19 Feb 2024 11:02:27 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc664-0001jy-Sh for 69242@debbugs.gnu.org; Mon, 19 Feb 2024 11:02:25 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 516415C00A0; Mon, 19 Feb 2024 11:01:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 19 Feb 2024 11:01:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=1708358518; x=1708444918; bh=HT4jTkP+UaoSTB/nbKF7NFdvAr7dGZfUSy8J5VnUamY=; b= HXkmcpAIAZTJ1+UyhPP9DApzvAv7O21fodvN+uX8o6HzqzcaHkdd1TRJrpcgnAQ7 YrXzSjBG+9YttZxM9QAMlFLcQI1oaJ9gJ5xEOKF4tZU/eL8jbyBQemBKXNsAcuR/ BBnv4mdTe7nU9c2AW/ugURCWCVTIfglSNuzDcWILfaXYoxQpatlmpyEG9fH4PxJP xsFOWuNypfhNtVw0utC9DPAKJQLPLHVFMm0A7KzCcyyLb1ePnb9PZ7BEMoUhBgpd AsLdKoRfLp+1+9LgiYNADPH4VVVzyRRwHd3w5IHscIJ+ZDK0+MMvh9iq8+XXRxr4 inCHx6IOEs9MPYbXdTm5Tw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; t=1708358518; x= 1708444918; bh=HT4jTkP+UaoSTB/nbKF7NFdvAr7dGZfUSy8J5VnUamY=; b=Q kx09aEyRgMqw5mxk7ymzar1VWRomc55gm+jzZlHvip23JxIwmg7AGzDcxB422mVj UTMQxYsm+CE3mQTDnOR1LZwk2L4vB2xniw0fFZE1IBJCUxF7gg0k/G0T0RzopDDD wLIkVpjccIp8Xy42sSFYONAPMgYWf1vmk0pciFwlqveJnLWt7zikyfCjvPUV8k2H zhm/Os1gL0YZB4R8t+Ah5ky3E3RxhYp/w3YExZZwoVdyv/wYMvHO4irTrr1RhAZo Lydrc4XUdXMIPf5SUu0tMorUb5Gs6RCa6I2Mt6Flkm5LEmdgKhm3/s1FP/P5Y5Xz GQjiLlWY/CR+opomchxQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhithhr hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg hrnheptdfhuedvtdevleegueelvedvjeevheffveevhedvuefftdefhfdvueeggfetgfdt necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmih htrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Feb 2024 11:01:57 -0500 (EST) Message-ID: Date: Mon, 19 Feb 2024 18:01:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69242: project-any-command with overriding-local-map Content-Language: en-US To: Juri Linkov , 69242@debbugs.gnu.org References: <86frxrj83q.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <86frxrj83q.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 69242 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) On 17/02/2024 19:17, Juri Linkov wrote: > And indeed evaluating in a*vc-diff* buffer: > > M-: (let ((overriding-local-map project-prefix-map)) (key-binding (read-key-sequence "? ") t)) > > returns nil for any longer than 1-key binding such as 'C-c C-a' or 'C-c RET a'. I suppose that's because you are entering a sequence that belongs to a local map (diff-mode-map), and overriding-local-map overrides them entirely ("INSTEAD OF" in the docstring), rather than having a higher priority, which is overriding-terminal-local-map does. > Then found this patch fixes the problem completely (no idea why): > > diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el > index aa92a73336e..fe866312931 100644 > --- a/lisp/progmodes/project.el > +++ b/lisp/progmodes/project.el > @@ -1871,7 +1874,7 @@ project-any-command > (interactive) > (let* ((pr (project-current t)) > (prompt-format (or prompt-format "[execute in %s]:")) > - (command (let ((overriding-local-map overriding-map)) > + (command (let ((overriding-terminal-local-map overriding-map)) > (key-binding (read-key-sequence > (format prompt-format (project-root pr))) > t))) LGTM, thanks. Let's see if this one triggers any other edge cases we didn't test for. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 20 02:59:44 2024 Received: (at 69242) by debbugs.gnu.org; 20 Feb 2024 07:59:44 +0000 Received: from localhost ([127.0.0.1]:44235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcL2V-00064X-SO for submit@debbugs.gnu.org; Tue, 20 Feb 2024 02:59:44 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:36289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcL2T-00064E-FU for 69242@debbugs.gnu.org; Tue, 20 Feb 2024 02:59:43 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 3185B1BF207; Tue, 20 Feb 2024 07:58:52 +0000 (UTC) From: Juri Linkov To: Dmitry Gutov Subject: Re: bug#69242: project-any-command with overriding-local-map In-Reply-To: (Dmitry Gutov's message of "Mon, 19 Feb 2024 18:01:56 +0200") Organization: LINKOV.NET References: <86frxrj83q.fsf@mail.linkov.net> Date: Tue, 20 Feb 2024 09:49:49 +0200 Message-ID: <86msrvfuci.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 69242 Cc: 69242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) >> And indeed evaluating in a*vc-diff* buffer: >> M-: (let ((overriding-local-map project-prefix-map)) (key-binding >> (read-key-sequence "? ") t)) >> returns nil for any longer than 1-key binding such as 'C-c C-a' or 'C-c >> RET a'. > > I suppose that's because you are entering a sequence that belongs to > a local map (diff-mode-map), and overriding-local-map overrides them > entirely ("INSTEAD OF" in the docstring), rather than having a higher > priority, which is overriding-terminal-local-map does. > >> Then found this patch fixes the problem completely (no idea why): >> @@ -1871,7 +1874,7 @@ project-any-command >> (interactive) >> (let* ((pr (project-current t)) >> (prompt-format (or prompt-format "[execute in %s]:")) >> - (command (let ((overriding-local-map overriding-map)) >> + (command (let ((overriding-terminal-local-map overriding-map)) >> (key-binding (read-key-sequence >> (format prompt-format (project-root pr))) >> t))) > > LGTM, thanks. Let's see if this one triggers any other edge cases we didn't > test for. There is another use of 'overriding-local-map' in project.el: in 'project--switch-project-command'. Not sure if this should be replaced with 'overriding-terminal-local-map' as well. Also not sure how 'overriding-terminal-local-map' will affect 'universal-argument' that relies on 'overriding-terminal-local-map'. Maybe project.el should use (internal-push-keymap map 'overriding-terminal-local-map) like in 'set-transient-map'. Ok, need to try and test this more. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 21 22:42:53 2024 Received: (at 69242) by debbugs.gnu.org; 22 Feb 2024 03:42:53 +0000 Received: from localhost ([127.0.0.1]:43195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rczz1-0003IL-TK for submit@debbugs.gnu.org; Wed, 21 Feb 2024 22:42:52 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:45813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rczyy-0003Hu-Q0 for 69242@debbugs.gnu.org; Wed, 21 Feb 2024 22:42:50 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id B31E23200B42; Wed, 21 Feb 2024 22:42:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 21 Feb 2024 22:42:18 -0500 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=1708573338; x=1708659738; bh=CglLO8Vh29Oaok0Llg4kjgudb40lxu7kHTkiOsjryXA=; b= leTlBX95ByOxvXXLh28tZ5ONc4FinfmDnj5iLt89SIm+QCrBX7h/4ROvCXoMLP8c Jer1EOyZ/y/Ob3GRSKA3mnaMIxsjpKc0OjMc1NZyvEtFtx16dopjQUlzMhvBNM5a hdtFgMvv8K1/PBdEEnB+9a9ZBxJ8fAI3ywdh6vx6opxO7AHrKIJpszQQBw/8+1qn RTLieUhPihHfRMAqpZhNTLEjBOFBIUqKNPvz1K75l/bqilTgZaEPnHXOyL9ER7u5 /AXatHiAbiKo7pqpUIN7t9TtnONYaZtE+gWv0Sj6BqV+Vqg5qxUfrbHlldcPMdq8 EHvzG5lM2pyKKuR3oB1RdQ== 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=fm1; t=1708573338; x= 1708659738; bh=CglLO8Vh29Oaok0Llg4kjgudb40lxu7kHTkiOsjryXA=; b=C 4/D1TO6me5y6jU5jpHCwL91Bmo1XzpkWtPJvoAIH85fm8V/KimNBXysvkBKG8NnV ZbgddkI/LWjjuO2y6YEVekt9/WSqIOmRP+0HC7i3PHyvcluCrqdUgajOM6RJbZAb qUF4BaV+69gXOuAzfBE3opACUYeUR46pAQY60C60L2N0B7PcR87OYytwSkDNhdZH /gNIPl9xXVtxqLoVPeRPpvMSLZ8fbd4vNn2mrKo1aYcTAJasc5Zne1zvPGpOaVl2 5I4xbchRiShOMPeGtYIDUjrj+9yzUrelZHhOAzF3Kax0MZ/yo3uyUjYH2QspLNou OswkZWC+S96DhAUiDgmKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Feb 2024 22:42:16 -0500 (EST) Message-ID: <16ad0b73-693e-4331-98ad-f5ac9c67d004@gutov.dev> Date: Thu, 22 Feb 2024 05:42:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69242: project-any-command with overriding-local-map Content-Language: en-US To: Juri Linkov References: <86frxrj83q.fsf@mail.linkov.net> <86msrvfuci.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <86msrvfuci.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 69242 Cc: 69242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) On 20/02/2024 09:49, Juri Linkov wrote: > There is another use of 'overriding-local-map' in project.el: > in 'project--switch-project-command'. Not sure if this should be > replaced with 'overriding-terminal-local-map' as well. Probably not: there is no intention to use any of the local maps there, AFAIR. > Also not sure how 'overriding-terminal-local-map' will affect > 'universal-argument' that relies on 'overriding-terminal-local-map'. > Maybe project.el should use > > (internal-push-keymap map 'overriding-terminal-local-map) > > like in 'set-transient-map'. Ok, need to try and test this more. Please do. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 25 02:35:26 2024 Received: (at 69242) by debbugs.gnu.org; 25 Feb 2024 07:35:27 +0000 Received: from localhost ([127.0.0.1]:50077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1re92k-0006Gv-8T for submit@debbugs.gnu.org; Sun, 25 Feb 2024 02:35:26 -0500 Received: from mslow1.mail.gandi.net ([217.70.178.240]:45419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1re92h-0006GS-Hw; Sun, 25 Feb 2024 02:35:24 -0500 Received: from relay6-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::226]) by mslow1.mail.gandi.net (Postfix) with ESMTP id DDE3CC03FA; Sun, 25 Feb 2024 07:34:53 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 54F43C0006; Sun, 25 Feb 2024 07:34:29 +0000 (UTC) From: Juri Linkov To: Dmitry Gutov Subject: Re: bug#69242: project-any-command with overriding-local-map In-Reply-To: <16ad0b73-693e-4331-98ad-f5ac9c67d004@gutov.dev> (Dmitry Gutov's message of "Thu, 22 Feb 2024 05:42:15 +0200") Organization: LINKOV.NET References: <86frxrj83q.fsf@mail.linkov.net> <86msrvfuci.fsf@mail.linkov.net> <16ad0b73-693e-4331-98ad-f5ac9c67d004@gutov.dev> Date: Sun, 25 Feb 2024 09:33:17 +0200 Message-ID: <868r39yp4y.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: 69242 Cc: 69242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) close 69242 30.0.50 thanks > LGTM, thanks. Let's see if this one triggers any other edge cases we didn't > test for. Ok, now pushed to master. >> Also not sure how 'overriding-terminal-local-map' will affect >> 'universal-argument' that relies on 'overriding-terminal-local-map'. >> Maybe project.el should use >> (internal-push-keymap map 'overriding-terminal-local-map) >> like in 'set-transient-map'. Ok, need to try and test this more. > > Please do. Regarding 'universal-argument', I discovered that currently e.g. 'C-x p p RET C-u C-c C-a' keeps the argument, but loses default-directory (i.e. sets default-directory back to the old directory). So tried a patch below, and it keeps default-directory, but loses the argument. @@ -1883,7 +1886,11 @@ project-any-command (let ((project-current-directory-override root)) (call-interactively command)) (let ((default-directory root)) - (call-interactively command)))))) + (call-interactively command))) + (when (memq command + '( universal-argument universal-argument-more + digit-argument negative-argument)) + (project-any-command overriding-map prompt-format))))) Then tried 'C-u C-x p p RET C-c C-a' and it keeps default-directory and also keeps the C-u argument for 'C-c C-a' after switching the project. This means no more changes needed because the above key sequence works nicely. So now closing. From unknown Sat Aug 16 18:44:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Mar 2024 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator