diff lispref/lists.texi @ 12098:a6eb5f12b0f3

*** empty log message ***
author Karl Heuer <kwzh@gnu.org>
date Tue, 06 Jun 1995 19:21:15 +0000
parents 73dc8205d259
children 586e3ea81792
line wrap: on
line diff
--- a/lispref/lists.texi	Tue Jun 06 03:11:10 1995 +0000
+++ b/lispref/lists.texi	Tue Jun 06 19:21:15 1995 +0000
@@ -543,9 +543,9 @@
 
 @example
 (append '(x y) 'z)
-     @result{} (x y z)
+     @result{} (x y . z)
 (append '(x y) [z])
-     @result{} (x y [z])
+     @result{} (x y . [z])
 @end example
 
 @noindent
@@ -980,11 +980,6 @@
 original, copy it first with @code{copy-sequence} and then sort.
 
 Sorting does not change the @sc{car}s of the cons cells in @var{list};
-each cons cell in the result contains the same element that it contained
-before.  The result differs from the argument @var{list} because the
-cells themselves have been reordered.
-
-Sorting does not change the @sc{car}s of the cons cells in @var{list};
 the cons cell that originally contained the element @code{a} in
 @var{list} still has @code{a} in its @sc{car} after sorting, but it now
 appears in a different position in the list due to the change of
@@ -1106,8 +1101,8 @@
 @end group
 @end example
 
-Note that @code{(delq 'b sample-list)} modifies @code{sample-list} to
-splice out the second element, but @code{(delq 'a sample-list)} does not
+Note that @code{(delq 'c sample-list)} modifies @code{sample-list} to
+splice out the third element, but @code{(delq 'a sample-list)} does not
 splice anything---it just returns a shorter list.  Don't assume that a
 variable which formerly held the argument @var{list} now has fewer
 elements, or that it still holds the original list!  Instead, save the
@@ -1178,6 +1173,9 @@
 Lisp versions do not use @code{equal} to compare elements.
 @end quotation
 
+  See also the function @code{add-to-list}, in @ref{Setting Variables},
+for another way to add an element to a list stored in a variable.
+
 @node Association Lists
 @section Association Lists
 @cindex association list