Subject: bug#71934: 31.0.50; edebug--called-interactively-skip vs. new fun objects

From: Michael Heerdegen <[email-masked]>
Date: Thu, 04 Jul 2024 07:11:36 +0200

Hi,

AFAIU we must update this test in `edebug--called-interactively-skip':

#+begin_src emacs-lisp
  (when (and (memq (car-safe (nth 1 frame1)) '(lambda closure)) ...
#+end_src

My test case:

#+begin_src emacs-lisp
(defun f (x)
  (interactive "P")
  (message "c-i: %s" (called-interactively-p 'any)))
(global-set-key [print] #'f)
#+end_src

When edebugging `f', (called-interactively-p 'any) will eval to nil in
current master when hitting print.  Evalled to t as expected in older
Emacs versions.

TIA,

Michael.