aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-07 06:32:36 +0200
committerLars Ingebrigtsen2019-10-07 06:32:36 +0200
commitc11910a8beb2a953ddcb420bfeb681724efdba4b (patch)
tree11c413f4a772efd8a9f7713ad037c0a120c7a2a3
parentcfbd1255c21ed28df8facc9b0f9ff257d70505c4 (diff)
downloademacs-c11910a8beb2a953ddcb420bfeb681724efdba4b.tar.gz
emacs-c11910a8beb2a953ddcb420bfeb681724efdba4b.zip
cl-reduce doc fix
* lisp/emacs-lisp/cl-seq.el (cl-reduce): Clarify what happens when SEQ is the empty list (bug#37400).
-rw-r--r--lisp/emacs-lisp/cl-seq.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/cl-seq.el b/lisp/emacs-lisp/cl-seq.el
index a15c994bc1a..520d450481f 100644
--- a/lisp/emacs-lisp/cl-seq.el
+++ b/lisp/emacs-lisp/cl-seq.el
@@ -133,6 +133,11 @@ If :INITIAL-VALUE is specified, it is added to the front of SEQ.
133If SEQ is empty, return :INITIAL-VALUE and FUNCTION is not 133If SEQ is empty, return :INITIAL-VALUE and FUNCTION is not
134called. 134called.
135 135
136If SEQ is empty and no :INITIAL-VALUE is given, then the function
137is called with zero arguments, and reduce returns whatever
138function does. This is the only case where the function is called
139with other than two arguments.
140
136\n(fn FUNCTION SEQ [KEYWORD VALUE]...)" 141\n(fn FUNCTION SEQ [KEYWORD VALUE]...)"
137 (cl--parsing-keywords (:from-end (:start 0) :end :initial-value :key) () 142 (cl--parsing-keywords (:from-end (:start 0) :end :initial-value :key) ()
138 (or (listp cl-seq) (setq cl-seq (append cl-seq nil))) 143 (or (listp cl-seq) (setq cl-seq (append cl-seq nil)))