From: Nicolas Petton Date: Wed, 7 Dec 2016 12:32:46 +0000 (+0100) Subject: Docstring improvement for seq-some (bug#25129) X-Git-Tag: emacs-26.0.90~1187 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=05e773a460708e40941d1267054bba23e619e7a0;p=emacs.git Docstring improvement for seq-some (bug#25129) * lisp/emacs-lisp/seq.el (seq-some): Make the docstring less confusing regarding the returned value. --- diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index 2b4330c1a3c..5ddc5a53a32 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el @@ -316,7 +316,8 @@ If SEQUENCE is empty, return INITIAL-VALUE and FUNCTION is not called." t)) (cl-defgeneric seq-some (pred sequence) - "Return the first value for which if (PRED element) is non-nil for in SEQUENCE." + "Return non-nil if PRED is satisfied for at least one element of SEQUENCE. +If so, return the first non-nil value returned by PRED." (catch 'seq--break (seq-doseq (elt sequence) (let ((result (funcall pred elt)))