1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 08:00:48 -08:00

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.
This commit is contained in:
Stephen Berman 2025-09-30 11:05:22 +02:00
parent 40a22ced14
commit ca704a67dc

View file

@ -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 ()