Subject: bug#62189: 29.0.60; complete-symbol while inside add-to-list form prints a warning

From: Eli Zaretskii <[email-masked]>
Date: Tue, 14 Mar 2023 21:32:01 +0200

> From: Spencer Baugh <[email-masked]>
> Date: Tue, 14 Mar 2023 12:09:43 -0400
> 
> 
> 1. Start emacs -Q and switch to *scratch*
> 2. Type (add-to-list f
> 3. Hit C-M-i to run complete-symbol
> 4. Observe the following warning and error in the *Messages* buffer:
> Warning: Optimization failure for add-to-list: Handler: add-to-list--anon-cmacro
> (wrong-number-of-arguments (3 . 5) 2)

That message is harmless, so I don't think it's a bug.

Adding Stefan, who introduced the warning, in case he has comments.