From a6f67d60e13e06a8d07e54e63f93801a39b5c04b Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 1 Aug 2021 23:43:37 +0300 Subject: [PATCH] * lisp/progmodes/project.el (project-switch-project): Use 'let*' (bug#49635). This allows overriding-local-map to have effect on read-key-sequence. --- lisp/progmodes/project.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index eab60756c8f..0e732864268 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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)) -- 2.39.2