From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Adding many elements to a list Date: Fri, 18 Sep 2009 18:24:50 +0200 Organization: ThierryVolpiatto Message-ID: <87pr9ob4q5.fsf@tux.homenetwork> References: <979e809f-0b95-46bf-afa4-1a25cda5bae0@j9g2000vbp.googlegroups.com> <7chbv0fjuj.fsf@anevia.com> <87vdjgxrga.fsf@lola.goethe.zz> <7ceiq4s405.fsf@pbourguignon.lefevre.anevia.com> <87my4sxpzv.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253291507 1943 80.91.229.12 (18 Sep 2009 16:31:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 16:31:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 18:31:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MogN2-0003CL-0a for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 18:31:40 +0200 Original-Received: from localhost ([127.0.0.1]:43083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MogN1-00005T-Ho for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 12:31:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MogMg-00005O-JP for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 12:31:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MogMb-00005B-5w for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 12:31:17 -0400 Original-Received: from [199.232.76.173] (port=58733 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MogMb-000058-1B for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 12:31:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44088) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MogMa-0007QH-JU for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 12:31:12 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MogMX-00032g-Go for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 18:31:09 +0200 Original-Received: from 29.78.88-79.rev.gaoland.net ([79.88.78.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 18:31:09 +0200 Original-Received: from thierry.volpiatto by 29.78.88-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 18:31:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 29.78.88-79.rev.gaoland.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMjoxNDoyMiswMjowMM7uH/IAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE3OjA4OjQ4KzAxOjAwhqNSRgAAAABJRU5ErkJggg== Cancel-Lock: sha1:KICtMpZQnLcmF6Ht913XCCXlFks= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68281 Archived-At: David Kastrup writes: > pjb@anevia.com (Pascal J. Bourguignon) writes: > >> David Kastrup 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