From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding many elements to a list
Date: Fri, 18 Sep 2009 18:24:50 +0200 [thread overview]
Message-ID: <87pr9ob4q5.fsf@tux.homenetwork> (raw)
In-Reply-To: 87my4sxpzv.fsf@lola.goethe.zz
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
next prev parent reply other threads:[~2009-09-18 16:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 13:15 Adding many elements to a list Nordlöw
2009-09-18 13:44 ` Pascal J. Bourguignon
2009-09-18 14:23 ` David Kastrup
2009-09-18 14:48 ` Pascal J. Bourguignon
2009-09-18 14:54 ` David Kastrup
2009-09-18 15:13 ` Pascal J. Bourguignon
2009-09-19 7:34 ` Andreas Politz
2009-09-22 7:07 ` David Kastrup
2009-09-22 11:53 ` Pascal J. Bourguignon
2009-09-22 12:16 ` David Kastrup
2009-09-22 12:37 ` Pascal J. Bourguignon
2009-09-22 15:18 ` David Kastrup
2009-09-28 20:03 ` Samuel Wales
2009-09-18 16:24 ` Thierry Volpiatto [this message]
2009-09-18 13:52 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pr9ob4q5.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.