]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve the documentation of a recent change
authorEli Zaretskii <eliz@gnu.org>
Fri, 17 Sep 2021 12:03:53 +0000 (15:03 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 17 Sep 2021 12:03:53 +0000 (15:03 +0300)
* etc/NEWS:
* doc/lispref/sequences.texi (Sequence Functions): Improve
documentation of 'seq-union'.

doc/lispref/sequences.texi
etc/NEWS

index 53d37199bf76dc1472c1ef2aa99b049ec93bd9be..4a48d62f6db866f82324441592369cf32c02d8ed 100644 (file)
@@ -957,9 +957,11 @@ contain less elements than @var{n}.  @var{n} must be an integer.  If
 @cindex sequences, union of
 @cindex union of sequences
   This function returns a list of the elements that appear either in
-@var{sequence1} or @var{sequence2}.  If the optional argument
-@var{function} is non-@code{nil}, it is a function of two arguments to
-use to compare elements instead of the default @code{equal}.
+@var{sequence1} or @var{sequence2}.  The elements of the returned list
+are all unique, in the sense that no two elements there will compare
+equal.  If the optional argument @var{function} is non-@code{nil}, it
+should be a function of two arguments to use to compare elements,
+instead of the default @code{equal}.
 
 @example
 @group
index b1ad4dd126374ddb780c6b41fa6ea6b72244a410..b10aa3b5a7d8058f1273204535537f68f3e390fb 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3858,7 +3858,8 @@ supporting Lisp files when 'require' is unsuitable.
 +++
 ** New function 'seq-union'.
 This function takes two sequences and returns a list of all elements
-that appear in either of them.
+that appear in either of them, with no two elements that compare equal
+appearing in the result.
 
 +++
 ** New function 'syntax-class-to-char'.