* lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--with-suppressed-warnings):
Make warning messages for let and let* consistent with other
empty-body warnings.
(if (null body)
(macroexp-unprogn
(macroexp-warn-and-return
- (format "Empty %s body" fun)
+ (format "`%s' with empty body" fun)
nil (list 'empty-body fun) 'compile-only fun))
(macroexp--all-forms body))
(cdr form))
(let ((_ 1))
))
'((empty-body let))
- "Warning: Empty let body")
+ "Warning: `let' with empty body")
(test-suppression
'(defun zot ()
(let* ((_ 1))
))
'((empty-body let*))
- "Warning: Empty let\\* body")
+ "Warning: `let\\*' with empty body")
(test-suppression
'(defun zot (x)