(edebug--called-interactively-skip): Fix bug#71934
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 4 Jul 2024 15:47:01 +0000 (11:47 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 4 Jul 2024 15:47:01 +0000 (11:47 -0400)
* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip):
Adjust to new interpreted functions.

lisp/emacs-lisp/edebug.el

index 381b7964a353980ad3581ee23a829678a4a01944..deebe5109bdf081f86ca4aabdfa0a9cc1395c78f 100644 (file)
@@ -4577,10 +4577,9 @@ With prefix argument, make it a temporary breakpoint."
 (add-hook 'called-interactively-p-functions
           #'edebug--called-interactively-skip)
 (defun edebug--called-interactively-skip (i frame1 frame2)
-  (when (and (memq (car-safe (nth 1 frame1)) '(lambda closure))
+  (when (and (interpreted-function-p (nth 1 frame1))
              ;; Lambda value with no arguments.
-             (null (nth (if (eq (car-safe (nth 1 frame1)) 'lambda) 1 2)
-                        (nth 1 frame1)))
+             (null (aref (nth 1 frame1) 0))
              (memq (nth 1 frame2) '(edebug-enter edebug-default-enter)))
     ;; `edebug-enter' calls itself on its first invocation.
     (let ((s 1))