GNU bug report logs - #52907
28.0.90; M-X is broken if (current-local-map)=nil

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Thu, 30 Dec 2021 23:31:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.90

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 52907 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, 52907 <at> debbugs.gnu.org
Subject: Re: bug#52907: 28.0.90; M-X is broken if (current-local-map)=nil
Date: Sat, 15 Jan 2022 22:30:27 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Daniel Mendler <mail <at> daniel-mendler.de> 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)?

I can reproduce with a master built from today.

I need to enable `debug-on-error', otherwise I only see a minibuffer
message indicating the error, the minibuffer survives.

Lars, be sure to follow the recipe with all details right - no M-x
instead of M-X, not "bro" instead of "brok" etc - then the recipe
"works" for me (and the analysis given by the OP makes sense to me).

HTH,

Michael.




This bug report was last modified 3 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.