mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-13 09:32:47 +00:00
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Warn on empty let bodies
This commit is contained in:
parent
899619ff6a
commit
d41a4ad4ae
@ -299,7 +299,12 @@ Assumes the caller has bound `macroexpand-all-environment'."
|
||||
(`(,(and fun (or 'let 'let*)) . ,(or `(,bindings . ,body) dontcare))
|
||||
(macroexp--cons fun
|
||||
(macroexp--cons (macroexp--all-clauses bindings 1)
|
||||
(macroexp--all-forms body)
|
||||
(if (null body)
|
||||
(macroexp-unprogn
|
||||
(macroexp--warn-and-return
|
||||
(format "Empty %s body" fun)
|
||||
nil t))
|
||||
(macroexp--all-forms body))
|
||||
(cdr form))
|
||||
form))
|
||||
(`(,(and fun `(lambda . ,_)) . ,args)
|
||||
|
Loading…
Reference in New Issue
Block a user