branch: externals/setup commit 439b4a89c76c01d0127ee1cdcad9f9493804a525 Author: Philip K <phil...@posteo.net> Commit: Philip K <phil...@posteo.net>
Raise an error if lexical binding is not enabled --- setup.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.el b/setup.el index 7c67546..20b3c7c 100644 --- a/setup.el +++ b/setup.el @@ -106,6 +106,8 @@ will otherwise just be evaluated as is. NAME may also be a macro, if it can provide a symbol." (declare (debug (&rest &or [symbolp sexp] form)) (indent defun)) + (unless lexical-binding + (error "The `setup' macro requires lexical binding")) (when (consp name) (push name body) (let ((shorthand (get (car name) 'setup-shorthand)))