]> git.eshelyaron.com Git - emacs.git/commitdiff
* bytecomp.el (byte-compile-defvar): Add note about quoted lambda.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 30 May 2011 17:14:19 +0000 (14:14 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 30 May 2011 17:14:19 +0000 (14:14 -0300)
lisp/emacs-lisp/bytecomp.el

index f0f59123aa92f68de21cd042246060525c60b457..0dae6748c24b24f8927475d345265af447378ab0 100644 (file)
@@ -4155,6 +4155,8 @@ binding slots have been popped."
            (if (eq fun 'defconst)
                ;; `defconst' sets `var' unconditionally.
                (let ((tmp (make-symbol "defconst-tmp-var")))
+                  ;; Quote with `quote' to prevent byte-compiling the body,
+                  ;; which would lead to an inf-loop.
                  `(funcall '(lambda (,tmp) (defconst ,var ,tmp))
                            ,value))
              ;; `defvar' sets `var' only when unbound.