From: Juri Linkov <juri@linkov.net>
To: 69242@debbugs.gnu.org
Cc: Dmitry Gutov <dmitry@gutov.dev>
Subject: bug#69242: project-any-command with overriding-local-map
Date: Sat, 17 Feb 2024 19:17:37 +0200 [thread overview]
Message-ID: <86frxrj83q.fsf@mail.linkov.net> (raw)
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)))
next reply other threads:[~2024-02-17 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 17:17 Juri Linkov [this message]
2024-02-19 16:01 ` bug#69242: project-any-command with overriding-local-map Dmitry Gutov
2024-02-20 7:49 ` Juri Linkov
2024-02-22 3:42 ` Dmitry Gutov
2024-02-25 7:33 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86frxrj83q.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=69242@debbugs.gnu.org \
--cc=dmitry@gutov.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).