emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 ac43ac1af9: cl-reduce doc string improvement


From: Lars Ingebrigtsen
Subject: emacs-28 ac43ac1af9: cl-reduce doc string improvement
Date: Thu, 18 Aug 2022 09:07:16 -0400 (EDT)

branch: emacs-28
commit ac43ac1af9dac42d30fbee044defee6e2641ebfc
Author: Colin Woodbury <colin@fosskers.ca>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    cl-reduce doc string improvement
    
    * lisp/emacs-lisp/cl-seq.el (cl-reduce): Explain what happens when
    using :from-end (bug#57273).
---
 lisp/emacs-lisp/cl-seq.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/emacs-lisp/cl-seq.el b/lisp/emacs-lisp/cl-seq.el
index 64ae05bf2a..60e204eaf5 100644
--- a/lisp/emacs-lisp/cl-seq.el
+++ b/lisp/emacs-lisp/cl-seq.el
@@ -139,6 +139,10 @@ only case where FUNCTION is called with fewer than two 
arguments.
 If SEQ contains exactly one element and no :INITIAL-VALUE is
 specified, then return that element and FUNCTION is not called.
 
+If :FROM-END is non-nil, the reduction occurs from the back of
+the SEQ moving forward, and the order of arguments to the
+FUNCTION is also reversed.
+
 \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]