master 810e9d675ba: Fix `void-function' error after `edebug-remove-instrumentation'
Stefan Monnier via Mailing list for Emacs changes <[email protected]> Sun, 26 Jul 2026 15:19:54 -0400 (EDT)
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: master commit 810e9d675ba484dabade1a9f30201d2848c5e2ea Author: Roi Martin <[email protected]> Commit: Stefan Monnier <[email protected]> Fix `void-function' error after `edebug-remove-instrumentation' After using `edebug-remove-instrumentation' to remove Edebug instrumentation from a command, calling that command interactively produces a `void-function' error. This happens because Edebug does not unwrap the command's interactive form. * lisp/emacs-lisp/edebug.el (edebug-unwrap*): Unwrap the interactive form of an `interpreted-function'. (Bug#81438) --- lisp/emacs-lisp/edebug.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index d7645f7c91e..29cb0350415 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -1318,7 +1318,7 @@ infinite loops when the code/environment contains a circular object.") (aref sexp 0) (mapcar #'edebug-unwrap* (aref sexp 1)) (mapcar (lambda (x) (if (consp x) (cons (car x) (edebug-unwrap* (cdr x))) x)) (aref sexp 2)) - (documentation sexp 'raw) (interactive-form sexp))) + (documentation sexp 'raw) (edebug-unwrap* (interactive-form sexp)))) (t sexp)))