[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding many elements to a list
From: |
Thierry Volpiatto |
Subject: |
Re: Adding many elements to a list |
Date: |
Fri, 18 Sep 2009 18:24:50 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
David Kastrup <dak@gnu.org> writes:
> pjb@anevia.com (Pascal J. Bourguignon) writes:
>
>> David Kastrup <dak@gnu.org> writes:
>>
>>> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>>>
>>>> So better use (require 'cl) (push new-item list)
>>>> or (cons new-item list)
>>>> or (append (list new-items...) list)
>>>
>>> (require 'cl) is quite unnecessary for all of the mentioned
>>> alternatives.
>>
>> Not on emacs version < 23.
>
> Nonsense. push&pop were officially announced in Emacs 21.1. I may be
> mistaken, but I think they have been there even earlier.
>
> And the other options certainly were there from the earliest versions of
> GNU Emacs.
There is two implementation of push, one in cl that use setf and another
one in elisp (that doesn't need to require cl) that use cons.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
- Adding many elements to a list, Nordlöw, 2009/09/18
- Re: Adding many elements to a list, Pascal J. Bourguignon, 2009/09/18
- Re: Adding many elements to a list, David Kastrup, 2009/09/18
- Re: Adding many elements to a list, Pascal J. Bourguignon, 2009/09/19
- Re: Adding many elements to a list, David Kastrup, 2009/09/18
- Re: Adding many elements to a list,
Thierry Volpiatto <=
- Re: Adding many elements to a list, Pascal J. Bourguignon, 2009/09/19
- Re: Adding many elements to a list, Andreas Politz, 2009/09/19
- Re: Adding many elements to a list, David Kastrup, 2009/09/22
- Re: Adding many elements to a list, Pascal J. Bourguignon, 2009/09/22
- Re: Adding many elements to a list, David Kastrup, 2009/09/22
- Re: Adding many elements to a list, Pascal J. Bourguignon, 2009/09/22
- Re: Adding many elements to a list, David Kastrup, 2009/09/22
- Re: Adding many elements to a list, Samuel Wales, 2009/09/28
Re: Adding many elements to a list, David Kastrup, 2009/09/18