]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not search the global keymap in project--keymap-prompt
authorDario Gjorgjevski <dario.gjorgjevski+git@gmail.com>
Mon, 5 Apr 2021 16:15:16 +0000 (18:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 5 Apr 2021 16:15:16 +0000 (18:15 +0200)
* 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).

lisp/progmodes/project.el

index 3dd11118ea19dce46ab6c604179f631981cc6827..910f70db03ccf6ec21879bf81deacd47558de01e 100644 (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)))