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#63648: 29.0.90; project.el: with switch-use-entire-map, switch-project errors on non-project commands Date: Mon, 23 Oct 2023 21:49:35 +0300 Message-ID: <5c1cbc58-9246-e8c5-87fa-93905578474d@gutov.dev> References: <8634zitwoy.fsf@mail.linkov.net> <50d46d30-a796-b855-0d4c-690d6cb3d15b@gutov.dev> <86il88x9cy.fsf@mail.linkov.net> <4367c45c-95b3-6a29-4ba3-068a3c748452@gutov.dev> <2e34e515-a921-a969-0915-bea94c745f8b@gutov.dev> <868r9258oi.fsf@mail.linkov.net> <86edishisp.fsf@mail.linkov.net> <6fc81cbf-a21f-c5b4-aa56-e8518b8570d7@gutov.dev> <86msxgatuy.fsf@mail.linkov.net> <86y1gynr2u.fsf@mail.linkov.net> <7c72fd8c-c3f6-a974-8a4b-a081f7a9fe1a@gutov.dev> <86ttqmv7c6.fsf@mail.linkov.net> <56e7d865-0456-db7d-3a5d-1235e62508bf@gutov.dev> <865y31onju.fsf@mail.linkov.net> <8562bdad-e487-886a-af49-7f67d8d14b7a@gutov.dev> <86msw9g5yb.fsf@mail.linkov.net> <56909bdd-14ee-f68c-178f-5057efcd6150@gutov.dev> <86bkcpnsxp.fsf@mail.linkov.net> <8634y1npsh.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="11502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Spencer Baugh , 63648@debbugs.gnu.org, sbaugh@catern.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 23 20:50:54 2023 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 1qv00q-0002go-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Oct 2023 20:50:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qv00a-0007iU-Nz; Mon, 23 Oct 2023 14:50:36 -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 1qv00X-0007iE-JD for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 14:50:33 -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 1qv00X-0006qI-BJ for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 14:50:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qv010-0006r1-8r for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 14:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2023 18:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63648 X-GNU-PR-Package: emacs Original-Received: via spool by 63648-submit@debbugs.gnu.org id=B63648.169808701726288 (code B ref 63648); Mon, 23 Oct 2023 18:51:02 +0000 Original-Received: (at 63648) by debbugs.gnu.org; 23 Oct 2023 18:50:17 +0000 Original-Received: from localhost ([127.0.0.1]:51688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv00G-0006pv-RO for submit@debbugs.gnu.org; Mon, 23 Oct 2023 14:50:17 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:43491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv00F-0006ph-8W for 63648@debbugs.gnu.org; Mon, 23 Oct 2023 14:50:16 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id E6A253200994; Mon, 23 Oct 2023 14:49:39 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 23 Oct 2023 14:49:40 -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:sender:subject:subject:to:to; s=fm2; t= 1698086979; x=1698173379; bh=/x09aqDzgprw2JxtMJ8gHxoQ+EELrJlJDAh 3Y5xEeZE=; b=iKxVxwHG3jFXjYdNlw9A2GiLSPyxmagpExOQN4ZQPgMUjbWL9Un cf3QYgCAc9cJyhLEQqd5txZ7kXyIvg1SzwhfExPSEOEJ5kU29G6OEMVDRv3hxrtQ 3EdOxqngxQq8pX+vYUnQtZxMOOl/nJOv/jxBf+lTLTe9FGv6rIDnAw1VH9Pmb1bQ RN0p7aJUJSOIBDs3oMlOQjMggq82h7Te5VFNzEc6bbbZOkaVjbJm01qdd7NwMy0P Ghey/yToQHIf3LWXD3gvShSqiYm5yW2JDzfWQl3EGHC++xUtx+CddVY13NdrMSlY 7lYTJdOXJ7FG0ybZSEJW2mr+MD12sbbL1ZA== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698086979; x=1698173379; bh=/x09aqDzgprw2JxtMJ8gHxoQ+EELrJlJDAh 3Y5xEeZE=; b=RAsfspHkSbKpcZji22XSifgLvBmi6PRrgkrX+Vk4sL/vB9Okkep +BYnWMw6TYCqCHsrZNdj4r8nq+AMbs0pV7fo4Fmy4AkCQQug9l3eZTp/h2IBEDZl UNDkQes54Eir2DF9iSJ9owofZSYw/YskY2N8GV4RQ6go8tBpfKUlCDmqhg58Y+3M 4ndXpLxRD9rGAPBHF+6i245VuEsyD58g6YyhnJoMSWIrvXWROOTEUvto08bY7BrY jXeAiyOB8fPh6/7yRJ25pvpceTyirJfJFV98HQIRHbm0AHAhk2axqjlXKgmOKiMZ Tzwan3H+JNyJjv/ntEuPUFAYw5UWItKgZ1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigdduvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 14:49:38 -0400 (EDT) Content-Language: en-US In-Reply-To: <8634y1npsh.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:273047 Archived-At: On 23/10/2023 21:42, Juri Linkov wrote: >>>>> Maybe adding a new option 'project-switch-use-global-map' would help? >>>> Try the attached, it's another iteration on the latest patch >>>> (prefix-command-echo-keystrokes-functions doesn't seem to work reliably in >>>> this context). Try it together with >>>> >>>> (setq project-switch-commands 'project-any-command) >>>> >>>> Also see the "Variation" in the comment (it allows for short bindings). >>> I tried it out but don't like that it requires an additional key 'o'. >>> I believe it should be possible to add a new option >>> 'project-switch-use-global-map' (or a new value 'global' for existing >>> 'project-switch-use-entire-map') that will combine 'project-prefix-map' >>> with global-map before reading a key sequence. >> Have you tried it together with >> >> (setq project-switch-commands 'project-any-command) >> >> ? > It doesn't allow using short keys from 'project-prefix-map'. As per the GGGP email, see the "Variation" in the comment. Uncomment it, comment out the next binding (for the same variable), and re-evaluate.