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#69242: project-any-command with overriding-local-map Date: Sat, 17 Feb 2024 19:17:37 +0200 Organization: LINKOV.NET Message-ID: <86frxrj83q.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="6656"; 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: Dmitry Gutov To: 69242@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 18 19:25:25 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 1rblqu-0001Zi-BJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Feb 2024 19:25:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rblqL-00025o-Dw; Sun, 18 Feb 2024 13:24:49 -0500 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 1rblqK-00020W-6X for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 13:24:48 -0500 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 1rblqJ-0003C2-UP for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2024 13:24:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rblqe-0003Vd-GG; Sun, 18 Feb 2024 13:25:08 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: dmitry@gutov.dev, bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Feb 2024 18:25:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69242 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Dmitry Gutov Original-Received: via spool by submit@debbugs.gnu.org id=B.170828070413367 (code B ref -1); Sun, 18 Feb 2024 18:25:08 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2024 18:25:04 +0000 Original-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 Original-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 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 1rbOws-0000uA-5Q for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 12:58:02 -0500 Original-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 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 450CC60002 for ; Sat, 17 Feb 2024 17:57:53 +0000 (UTC) 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-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:280188 Archived-At: 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)))