unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Daniel Mendler <mail@daniel-mendler.de>, 52907@debbugs.gnu.org
Subject: bug#52907: 28.0.90; M-X is broken if (current-local-map)=nil
Date: Sat, 15 Jan 2022 22:30:27 +0100	[thread overview]
Message-ID: <87tue46618.fsf@web.de> (raw)
In-Reply-To: <87lezhxrbk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 15 Jan 2022 10:48:31 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Daniel Mendler <mail@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.





  parent reply	other threads:[~2022-01-15 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-30 23:29 bug#52907: 28.0.90; M-X is broken if (current-local-map)=nil Daniel Mendler
2022-01-15  9:48 ` Lars Ingebrigtsen
2022-01-15 14:29   ` Daniel Mendler
2022-01-15 21:30   ` Michael Heerdegen [this message]
2022-01-20 10:01     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tue46618.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=52907@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=mail@daniel-mendler.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).