Skip to content

Commit da93523

Browse files
committed
Change some Edebug specifications to ‘sexp’ to not evaluate them.
Edebug doesn’t handle bodies rewritten by generator.el well, cf. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40434. Until that is fixed, it’s better to avoid instrumented the bodies altogether to avoid spurious bugs.
1 parent 9367005 commit da93523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aio.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ value, or any uncaught error signal."
133133
(doc-string 3)
134134
(debug (&define lambda-list lambda-doc
135135
[&optional ("interactive" interactive)]
136-
def-body)))
136+
&rest sexp)))
137137
(let ((args (make-symbol "args"))
138138
(promise (make-symbol "promise"))
139139
(split-body (macroexp-parse-body body)))
@@ -151,7 +151,7 @@ value, or any uncaught error signal."
151151
"Like `aio-lambda' but gives the function a name like `defun'."
152152
(declare (indent defun)
153153
(doc-string 3)
154-
(debug (&define name lambda-list def-body)))
154+
(debug (&define name lambda-list &rest sexp)))
155155
`(progn
156156
(defalias ',name (aio-lambda ,arglist ,@body))
157157
(function-put ',name 'aio-defun-p t)))
@@ -190,7 +190,7 @@ Beware: Dynamic bindings that are lexically outside
190190
191191
Other global state such as the current buffer behaves likewise."
192192
(declare (indent 0)
193-
(debug (body)))
193+
(debug (&rest sexp)))
194194
`(let ((promise (funcall (aio-lambda ()
195195
(aio-await (aio-sleep 0))
196196
,@body))))

0 commit comments

Comments
 (0)