From ca704a67dc7d0601d15fe96b76c9e59f4f87b7fb Mon Sep 17 00:00:00 2001 From: Stephen Berman Date: Tue, 30 Sep 2025 11:05:22 +0200 Subject: [PATCH] Fix debug specs in minibuffer-tests.el macros (bug#79499) * test/lisp/minibuffer-tests.el (with-minibuffer-setup) (completing-read-with-minibuffer-setup): Prevent instrumenting functions that call these macros from erroring due to an invalid debug specification in the 'declare' form. Use 't' as the debug spec since it is the most general and adequate here. --- test/lisp/minibuffer-tests.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lisp/minibuffer-tests.el b/test/lisp/minibuffer-tests.el index 27e9bbbefb4..03e8ea24018 100644 --- a/test/lisp/minibuffer-tests.el +++ b/test/lisp/minibuffer-tests.el @@ -449,7 +449,7 @@ (defmacro with-minibuffer-setup (completing-read &rest body) - (declare (indent 1) (debug (collection body))) + (declare (indent 1) (debug t)) `(catch 'result (minibuffer-with-setup-hook (lambda () @@ -460,7 +460,7 @@ ,completing-read)))) (defmacro completing-read-with-minibuffer-setup (collection &rest body) - (declare (indent 1) (debug (collection body))) + (declare (indent 1) (debug t)) `(catch 'result (minibuffer-with-setup-hook (lambda ()