emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trivial bug in eintr


From: Ralph Moritz
Subject: trivial bug in eintr
Date: Thu, 25 May 2006 10:35:17 +0200

Hello Emacs,

edition 2.14 of the Emacs Lisp Introduction (eintr) says the
following in section 7.5 (Node: setcar),

 ...
      (setq animals '(antelope giraffe lion tiger))
 ...
      (setcar animals 'hippopotamus)
 ...
      animals
           => (hippopotamus giraffe lion tiger)

 The first element on the list, `antelope' is replaced by `hippopotamus'.

    So we can see that `setcar' did not add a new element to the list as
 `cons' would have; it replaced `giraffe' with `hippopotamus'; it
 _changed_ the list.

I believe that `giraffe' should be changed to `antelope' in the last
paragraph, above.

Regards,
Ralph

--
Ralph Moritz
Ph:     +27 72385 0679 (cell)
       +27 31705 5268 (home)

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on Usenet?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]