aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDaniel Colascione2014-04-20 18:03:39 -0700
committerDaniel Colascione2014-04-20 18:03:39 -0700
commit2fa1b97db098c04810763e742e956c63b9527989 (patch)
tree56356f808c0cb021e3f254903255700f1f78e10e /lisp
parente8a77f2423f5e66e040a40a1d57aec640cc08dcf (diff)
downloademacs-2fa1b97db098c04810763e742e956c63b9527989.tar.gz
emacs-2fa1b97db098c04810763e742e956c63b9527989.zip
Fix cl-loop destructuring under `with' clause
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/cl-macs.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 28b9c79079e..cb91bbcb4d9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-04-21 Daniel Colascione <dancol@dancol.org>
2
3 * emacs-lisp/cl-macs.el:
4 (cl--loop-let): Properly destructure `while' clauses.
5
12014-04-20 Daniel Colascione <dancol@dancol.org> 62014-04-20 Daniel Colascione <dancol@dancol.org>
2 7
3 * vc/vc.el (vc-root-dir): New public autoloaded function for 8 * vc/vc.el (vc-root-dir): New public autoloaded function for
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 5fc8c9f9a42..5b9e17af23a 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1550,7 +1550,7 @@ If BODY is `setq', then use SPECS for assignments rather than for bindings."
1550 (if (and (cl--unused-var-p temp) (null expr)) 1550 (if (and (cl--unused-var-p temp) (null expr))
1551 nil ;; Don't bother declaring/setting `temp' since it won't 1551 nil ;; Don't bother declaring/setting `temp' since it won't
1552 ;; be used when `expr' is nil, anyway. 1552 ;; be used when `expr' is nil, anyway.
1553 (when (and (eq body 'setq) (cl--unused-var-p temp)) 1553 (when (cl--unused-var-p temp)
1554 ;; Prefer a fresh uninterned symbol over "_to", to avoid 1554 ;; Prefer a fresh uninterned symbol over "_to", to avoid
1555 ;; warnings that we set an unused variable. 1555 ;; warnings that we set an unused variable.
1556 (setq temp (make-symbol "--cl-var--")) 1556 (setq temp (make-symbol "--cl-var--"))