aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/ert.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index be9f013ebcf..4ea894f4ede 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -237,7 +237,9 @@ in batch mode, an error is signaled.
237 `(:expected-result-type ,expected-result)) 237 `(:expected-result-type ,expected-result))
238 ,@(when tags-supplied-p 238 ,@(when tags-supplied-p
239 `(:tags ,tags)) 239 `(:tags ,tags))
240 :body (lambda () ,@body) 240 ;; Add `nil' after the body to enable compiler warnings
241 ;; about unused computations at the end.
242 :body (lambda () ,@body nil)
241 :file-name ,(or (macroexp-file-name) buffer-file-name))) 243 :file-name ,(or (macroexp-file-name) buffer-file-name)))
242 ',name)))) 244 ',name))))
243 245