Do not search the global keymap in project--keymap-prompt

* lisp/progmodes/project.el: (project--keymap-prompt) Pass
project--keymap-prompt as a list to where-is-internal so that the
global keymap is not searched at all (bug#47501).
This commit is contained in:
Dario Gjorgjevski 2021-04-05 18:15:16 +02:00 committed by Lars Ingebrigtsen
parent 20669c1b92
commit ddc4bba413

View file

@ -1322,7 +1322,7 @@ are legal even if they aren't listed in the dispatch menu."
key tmp)))
(let ((key (if key
(vector key)
(where-is-internal cmd project-prefix-map t))))
(where-is-internal cmd (list project-prefix-map) t))))
(format "[%s] %s"
(propertize (key-description key) 'face 'bold)
label)))