aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-09 22:01:12 -0400
committerGlenn Morris2013-05-09 22:01:12 -0400
commitd5837773e0d82e36c0175f7be917adbce982b641 (patch)
tree49fbe87d3af2ac2d08d75249359cb5e59881ffa3
parent759fd76395eb3c4bc8605fdb656d8431b9ca404d (diff)
downloademacs-d5837773e0d82e36c0175f7be917adbce982b641.tar.gz
emacs-d5837773e0d82e36c0175f7be917adbce982b641.zip
* lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/emacs-lisp/cl-macs.el40
2 files changed, 33 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f77660d64a4..93ee5ce5a0f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-05-10 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/cl-macs.el (cl-loop): Doc fix.
4
12013-05-09 Stefan Monnier <monnier@iro.umontreal.ca> 52013-05-09 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * comint.el (comint-redirect-send-command-to-process): Use :around 7 * comint.el (comint-redirect-send-command-to-process): Use :around
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index e9cc200baaa..4aae2c6efe5 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -765,17 +765,35 @@ This is compatible with Common Lisp, but note that `defun' and
765;;;###autoload 765;;;###autoload
766(defmacro cl-loop (&rest loop-args) 766(defmacro cl-loop (&rest loop-args)
767 "The Common Lisp `loop' macro. 767 "The Common Lisp `loop' macro.
768Valid clauses are: 768Valid clauses include:
769 for VAR from/upfrom/downfrom NUM to/upto/downto/above/below NUM by NUM, 769 For clauses:
770 for VAR in LIST by FUNC, for VAR on LIST by FUNC, for VAR = INIT then EXPR, 770 for VAR from/upfrom/downfrom EXPR1 to/upto/downto/above/below EXPR2 by EXPR3
771 for VAR across ARRAY, repeat NUM, with VAR = INIT, while COND, until COND, 771 for VAR = EXPR1 then EXPR2
772 always COND, never COND, thereis COND, collect EXPR into VAR, 772 for VAR in/on/in-ref LIST by FUNC
773 append EXPR into VAR, nconc EXPR into VAR, sum EXPR into VAR, 773 for VAR across/across-ref ARRAY
774 count EXPR into VAR, maximize EXPR into VAR, minimize EXPR into VAR, 774 for VAR being:
775 if COND CLAUSE [and CLAUSE]... else CLAUSE [and CLAUSE...], 775 the elements of/of-ref SEQUENCE [using (index VAR2)]
776 unless COND CLAUSE [and CLAUSE]... else CLAUSE [and CLAUSE...], 776 the symbols [of OBARRAY]
777 do EXPRS..., initially EXPRS..., finally EXPRS..., return EXPR, 777 the hash-keys/hash-values of HASH-TABLE [using (hash-values/hash-keys V2)]
778 finally return EXPR, named NAME. 778 the key-codes/key-bindings/key-seqs of KEYMAP [using (key-bindings VAR2)]
779 the overlays/intervals [of BUFFER] [from POS1] [to POS2]
780 the frames/buffers
781 the windows [of FRAME]
782 Iteration clauses:
783 repeat INTEGER
784 while/until/always/never/thereis CONDITION
785 Accumulation clauses:
786 collect/append/nconc/concat/vconcat/count/sum/maximize/minimize FORM
787 [into VAR]
788 Miscellaneous clauses:
789 with VAR = INIT
790 if/when/unless COND CLAUSE [and CLAUSE]... else CLAUSE [and CLAUSE...]
791 named NAME
792 initially/finally [do] EXPRS...
793 do EXPRS...
794 [finally] return EXPR
795
796For more details, see Info node `(cl)Loop Facility'.
779 797
780\(fn CLAUSE...)" 798\(fn CLAUSE...)"
781 (declare (debug (&rest &or 799 (declare (debug (&rest &or