]> git.eshelyaron.com Git - emacs.git/commit
Fix missing file&line info in "Unknown defun property" warnings
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 23 Jan 2021 21:04:36 +0000 (16:04 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 23 Jan 2021 21:04:36 +0000 (16:04 -0500)
commit1559cc445a306b61b2a47c710e049ea26fe5265d
tree5791f5bb8af6d4c353c1b135a79ef849caefc01d
parentb7068be5c410c5592856aeebd7aa4d62b1dc68e5
Fix missing file&line info in "Unknown defun property" warnings

* lisp/emacs-lisp/byte-run.el (defmacro, defun): Use
`macroexp--warn-and-return` rather than `message`.

* lisp/emacs-lisp/macroexp.el: Fix `macroexp--compiling-p`.
(macroexp--warn-and-return): Don't try and detect repetition on forms
like `nil`.
(macroexp-macroexpand): Don't forget to bind `macroexpand-all-environment`.
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/macroexp.el