]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/project.el (project-switch-project): Use 'let*' (bug#49635).
authorJuri Linkov <juri@linkov.net>
Sun, 1 Aug 2021 20:43:37 +0000 (23:43 +0300)
committerJuri Linkov <juri@linkov.net>
Sun, 1 Aug 2021 20:43:37 +0000 (23:43 +0300)
This allows overriding-local-map to have effect on read-key-sequence.

lisp/progmodes/project.el

index eab60756c8f3ebeb383adae97055f1f2ce4c2dd8..0e732864268897d0fa41590ec275ac4e1f224f24 100644 (file)
@@ -1386,8 +1386,8 @@ to directory DIR."
                 (define-key temp-map (vector keychar) cmd)))))
          command)
     (while (not command)
-      (let ((overriding-local-map commands-map)
-            (choice (read-key-sequence (project--keymap-prompt))))
+      (let* ((overriding-local-map commands-map)
+             (choice (read-key-sequence (project--keymap-prompt))))
         (when (setq command (lookup-key commands-map choice))
           (unless (or project-switch-use-entire-map
                       (assq command commands-menu))