Subject: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 30 Sep 2022 14:37:37 +0200

Juri Linkov <[email-masked]> writes:

> Sorry, I had an additional setting more than -Q:
>
>   (setq debug-on-error t)
>
> I thought it's required to see errors in -Q, because without
> debug-on-error, the errors are hidden in *Messages*. And
> indeed in this case without debug-on-error *Messages* contains:
>
>   Warning: Optimization failure for keymap-set: Handler: keymap-set--anon-cmacro
>   (wrong-number-of-arguments #<subr keymap-set--anon-cmacro> 2)
>   Making completion list...

Still not seeing the problem, unfortunately --

emacs -Q
M-: (setq debug-on-error t)

(keymap-set d `C-M-i'

No errors, and nothing in *Messages*, with or without debug-on-error.