[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trivial bug in eintr
From: |
David Kastrup |
Subject: |
Re: trivial bug in eintr |
Date: |
Thu, 25 May 2006 11:06:05 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Ralph Moritz" <address@hidden> writes:
> 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.
Fixed.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum