]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/project.el (project-any-command): Allow local keymaps.
authorJuri Linkov <juri@linkov.net>
Sun, 25 Feb 2024 07:32:45 +0000 (09:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:52:29 +0000 (18:52 +0100)
Use overriding-terminal-local-map instead of overriding-local-map.
This allows using keys from local maps (bug#69242).

(cherry picked from commit 6b800f9adf3506bf113539cf22cd07c7cda9f7b8)

lisp/progmodes/project.el

index 6b0b4e8685141127dcb74b6df199c4b002dd852e..3612a43d1de1fa4d782853dde73e19aeb61eebe0 100644 (file)
@@ -1866,12 +1866,12 @@ Otherwise, `default-directory' is temporarily set to the current
 project's root.
 
 If OVERRIDING-MAP is non-nil, it will be used as
-`overriding-local-map' to provide shorter bindings from that map
-which will take priority over the global ones."
+`overriding-terminal-local-map' to provide shorter bindings
+from that map which will take priority over the global ones."
   (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)))