]> git.eshelyaron.com Git - emacs.git/commit
macroexp-parse-body: correct parsing of empty body (bug#66136)
authorMattias Engdegård <mattiase@acm.org>
Mon, 25 Sep 2023 12:40:11 +0000 (14:40 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 25 Sep 2023 13:04:17 +0000 (15:04 +0200)
commitf616edb4ccce5b9d60e3ff42806bd2131989cd1e
tree5f65d8d50afe12f8efe251a768b64612bb8eb978
parent6c99e4e3840aae385b04d5269eac7e758a9b2ade
macroexp-parse-body: correct parsing of empty body (bug#66136)

* lisp/emacs-lisp/macroexp.el (macroexp-parse-body):
Return an empty body even when there are declarations present.
Previously, the last declaration was considered part of the body,
which is only correct if the input consists of a single string.

Reported by Jens Schmidt.
lisp/emacs-lisp/macroexp.el