projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fbfd27
)
* bytecomp.el (byte-compile-defvar): Add note about quoted lambda.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 30 May 2011 17:14:19 +0000
(14:14 -0300)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 30 May 2011 17:14:19 +0000
(14:14 -0300)
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index f0f59123aa92f68de21cd042246060525c60b457..0dae6748c24b24f8927475d345265af447378ab0 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-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.