Subject: bug#57115: emacs 29 ~commandp~ check function ~find-file~ loop without termination while ~find-file~ is adviced nested up to 20 level

From: Michael Heerdegen <[email-masked]>
Date: Sat, 13 Aug 2022 06:37:18 +0200

Lars Ingebrigtsen <[email-masked]> writes:

> I'm not quite sure what this code snippet is attempting to achieve, but
> it does hang in Emacs 29, and it didn't in Emacs 28.
>
> Adding Stefan to the CCs; perhaps he has some comments.

The `commandp' call is what is hanging (or taking extremely long).  I
guess there is a tree-like recursion of `commandp' and
`oclosure-interactive-form' (recurses on advice--car and
advice--cdr...?) - just guessing.

Michael.