summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2014-04-22 21:40:35 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2014-04-22 21:40:35 -0400
commitddc13efd7096bf8cb745cd7b03b6f064747680bc (patch)
tree7457f3ed21993c462fa9968850afb9e2ec7f3e66 /lisp/emacs-lisp
parent1b0f10d2df1c58921644fe286dfb7a159fa56904 (diff)
downloademacs-ddc13efd7096bf8cb745cd7b03b6f064747680bc.tar.gz
* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Fix last merge.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/cl-macs.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index c9f5f68a4d3..58c3638b58b 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1548,7 +1548,8 @@ If BODY is `setq', then use SPECS for assignments rather than for bindings."
(if (and (cl--unused-var-p temp) (null expr))
nil ;; Don't bother declaring/setting `temp' since it won't
;; be used when `expr' is nil, anyway.
- (when (or (null temp) (cl--unused-var-p temp))
+ (when (or (null temp)
+ (and (eq body 'setq) (cl--unused-var-p temp)))
;; Prefer a fresh uninterned symbol over "_to", to avoid
;; warnings that we set an unused variable.
(setq temp (make-symbol "--cl-var--"))