aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-02-17 03:16:42 +0000
committerLuc Teirlinck2004-02-17 03:16:42 +0000
commitefb478436e5f5b09c11a93c592a657305d77f512 (patch)
tree5b3718035ff7430497852bde687d75826f08c3c2
parent8a9825f74d0c4a1e16669e0e7ccc400ec86743db (diff)
downloademacs-efb478436e5f5b09c11a93c592a657305d77f512.tar.gz
emacs-efb478436e5f5b09c11a93c592a657305d77f512.zip
(Sets And Lists): Update description of delete-dups.
-rw-r--r--lispref/lists.texi13
1 files changed, 3 insertions, 10 deletions
diff --git a/lispref/lists.texi b/lispref/lists.texi
index 2426a4d4670..e3891f81971 100644
--- a/lispref/lists.texi
+++ b/lispref/lists.texi
@@ -1436,16 +1436,9 @@ comparison.
1436 1436
1437@defun delete-dups list 1437@defun delete-dups list
1438This function destructively removes all @code{equal} duplicates from 1438This function destructively removes all @code{equal} duplicates from
1439@var{list} and returns the result. Of several @code{equal} 1439@var{list}, stores the result in @var{list} and returns it. Of
1440occurrences of an element in @var{list}, @code{delete-dups} keeps the 1440several @code{equal} occurrences of an element in @var{list},
1441last one. 1441@code{delete-dups} keeps the first one.
1442
1443The value of @var{list} after a call to this function is undefined.
1444Usually, we store the return value back in @var{list}:
1445
1446@example
1447(setq list (delete-dups list))
1448@end example
1449@end defun 1442@end defun
1450 1443
1451 See also the function @code{add-to-list}, in @ref{Setting Variables}, 1444 See also the function @code{add-to-list}, in @ref{Setting Variables},