[emacs-berlin] Understanding M-x

Michael Heerdegen michael_heerdegen at web.de
Fri May 23 14:37:37 UTC 2025


jman <emacs-berlin at city17.xyz> writes:

> So I've tried C-h k M-x but as expected I got a quite generic:
>
>    M-x runs the command execute-extended-command (found in global-map),
>    which is an interactive native-compiled Lisp function in ‘simple.el’.
>
> But the documentation or the code for that function doesn't get me
> closer to my goal.
>
> Any suggestion?

Is the rest of that help page also generic (looking like in emacs -Q),
or is there any advice listed?  Most packages that change the M-x
behavior advise `execute-extended-command'.

If not, we have to dig deeper.  The call tree normally looks like

  execute-extended-command -> read-extended-command -> completing-read

so here you have a chance to dig.

If you don't know how to proceed, and what you see is different than in
emacs -Q, bisect your init file to find the lines that are responsible.
But you may want to have a look at your installed packages before that.
Maybe you just enable some minor mode or whatever.


Michael.



More information about the emacs-berlin mailing list