emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/setup 439b4a8 02/25: Raise an error if lexical binding


From: Stefan Monnier
Subject: [elpa] externals/setup 439b4a8 02/25: Raise an error if lexical binding is not enabled
Date: Wed, 14 Apr 2021 18:48:59 -0400 (EDT)

branch: externals/setup
commit 439b4a89c76c01d0127ee1cdcad9f9493804a525
Author: Philip K <philipk@posteo.net>
Commit: Philip K <philipk@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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]