projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe90564
)
Docstring improvement for seq-some (bug#25129)
author
Nicolas Petton
<nicolas@petton.fr>
Wed, 7 Dec 2016 12:32:46 +0000
(13:32 +0100)
committer
Nicolas Petton
<nicolas@petton.fr>
Wed, 7 Dec 2016 12:32:46 +0000
(13:32 +0100)
* lisp/emacs-lisp/seq.el (seq-some): Make the docstring less confusing
regarding the returned value.
lisp/emacs-lisp/seq.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/seq.el
b/lisp/emacs-lisp/seq.el
index 2b4330c1a3c41a0eb916edaa19fa1772e78880ce..5ddc5a53a328c4b48e63a2ec701d9ca9ca09be99 100644
(file)
--- 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)))