]> git.eshelyaron.com Git - emacs.git/commit
(elisp--local-variables): Fix recent regression
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 26 Aug 2023 19:44:28 +0000 (15:44 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 26 Aug 2023 19:44:28 +0000 (15:44 -0400)
commitecb1e6c71323127b0b6d171861376950d28073c0
treee07b33ba9a2ab93bbd3fd4ae9aa0af709919d24b
parentd8b528c896778305313dcafb0a4be967935747c8
(elisp--local-variables): Fix recent regression

While at it, make it work when completing code within `eval-when-compile`
and friends, where it failed in sometimes spectacular ways.

* lisp/progmodes/elisp-mode.el (elisp--local-macroenv): New var.
(elisp--local-variables): Use it.  Also, advice `macroexpand-1` since
`macroexpand-all` doesn't use `macroexpand` any more.
(prin1-char): Remove redundant "" arg.
(elisp--eval-defun-1): Align the `eval` call to what's used in
`custom-initialize-set`.
lisp/progmodes/elisp-mode.el