Subject: bug#52907: 28.0.90; M-X is broken if (current-local-map)=nil

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 15 Jan 2022 10:48:31 +0100

Daniel Mendler <[email-masked]> writes:

> 1. Start emacs -Q
>
> 2. Define in the scratch buffer
>    (defun broken-command ()
>      (interactive fundamental-mode))
>
> 3. Switch to fundamental mode
>    (fundamental-mode)
>
> 4. M-X brok TAB ===> Error (see below)
>
> The problem is that the (current-local-map) is nil. This breaks
> the predicate of execute-extended-command-for-buffer.

I'm unable to reproduce this problem in either Emacs 28 or 29.  Are
there additional steps needed to reproduce the bug (or has this been
fixed since this was reported)?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no