From: Luc Teirlinck Date: Tue, 17 Feb 2004 03:16:42 +0000 (+0000) Subject: (Sets And Lists): Update description of delete-dups. X-Git-Tag: ttn-vms-21-2-B4~7548 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=efb478436e5f5b09c11a93c592a657305d77f512;p=emacs.git (Sets And Lists): Update description of delete-dups. --- 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. @defun delete-dups list This function destructively removes all @code{equal} duplicates from -@var{list} and returns the result. Of several @code{equal} -occurrences of an element in @var{list}, @code{delete-dups} keeps the -last one. - -The value of @var{list} after a call to this function is undefined. -Usually, we store the return value back in @var{list}: - -@example -(setq list (delete-dups list)) -@end example +@var{list}, stores the result in @var{list} and returns it. Of +several @code{equal} occurrences of an element in @var{list}, +@code{delete-dups} keeps the first one. @end defun See also the function @code{add-to-list}, in @ref{Setting Variables},