emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c11910a: cl-reduce doc fix


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master c11910a: cl-reduce doc fix
Date: Mon, 7 Oct 2019 00:33:26 -0400 (EDT)

branch: master
commit c11910a8beb2a953ddcb420bfeb681724efdba4b
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    cl-reduce doc fix
    
    * lisp/emacs-lisp/cl-seq.el (cl-reduce): Clarify what happens when
    SEQ is the empty list (bug#37400).
---
 lisp/emacs-lisp/cl-seq.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/emacs-lisp/cl-seq.el b/lisp/emacs-lisp/cl-seq.el
index a15c994..520d450 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.
 If SEQ is empty, return :INITIAL-VALUE and FUNCTION is not
 called.
 
+If SEQ is empty and no :INITIAL-VALUE is given, then the function
+is called with zero arguments, and reduce returns whatever
+function does. This is the only case where the function is called
+with other than two arguments.
+
 \n(fn FUNCTION SEQ [KEYWORD VALUE]...)"
   (cl--parsing-keywords (:from-end (:start 0) :end :initial-value :key) ()
     (or (listp cl-seq) (setq cl-seq (append cl-seq nil)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]