diff options
author | Nicolas Petton <nicolas@petton.fr> | 2016-12-07 13:32:46 +0100 |
---|---|---|
committer | Nicolas Petton <nicolas@petton.fr> | 2016-12-07 13:32:46 +0100 |
commit | 05e773a460708e40941d1267054bba23e619e7a0 (patch) | |
tree | 127d47254080dcca88aad102ea42847602321d8e /lisp/emacs-lisp/seq.el | |
parent | fe905647b53d00b1bd36e4f7ac756135635bb49a (diff) | |
download | emacs-05e773a460708e40941d1267054bba23e619e7a0.tar.gz emacs-05e773a460708e40941d1267054bba23e619e7a0.tar.bz2 emacs-05e773a460708e40941d1267054bba23e619e7a0.zip |
Docstring improvement for seq-some (bug#25129)
* lisp/emacs-lisp/seq.el (seq-some): Make the docstring less confusing
regarding the returned value.
Diffstat (limited to 'lisp/emacs-lisp/seq.el')
-rw-r--r-- | lisp/emacs-lisp/seq.el | 3 |
1 files changed, 2 insertions, 1 deletions
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))) |