From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: adding a string to every element in a list Date: Tue, 18 Nov 2008 10:16:10 -0800 Message-ID: <000501c949a9$bd63ba20$0200a8c0@us.oracle.com> References: <1226901075.25203.2782.camel@localhost><492109F3.6040002@gatech.edu> <1227031392.31451.2499.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227032216 28579 80.91.229.12 (18 Nov 2008 18:16:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 18:16:56 +0000 (UTC) Cc: 'emacs' To: "'Matt Price'" , "'Matthew Flaschen'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 19:17:57 2008 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 1L2V99-00010Y-6R for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 19:17:55 +0100 Original-Received: from localhost ([127.0.0.1]:58861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2V80-0002iR-Fq for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 13:16:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2V7f-0002i2-Nn for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 13:16:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2V7d-0002ha-B9 for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 13:16:22 -0500 Original-Received: from [199.232.76.173] (port=52449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2V7d-0002hX-4Q for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 13:16:21 -0500 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:29622 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2V7c-00022o-TK for help-gnu-emacs@gnu.org; Tue, 18 Nov 2008 13:16:21 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAIIG8Q3004510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Nov 2008 18:16:09 GMT Original-Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAIIGIrP000856; Tue, 18 Nov 2008 18:16:19 GMT Original-Received: from dradamslap1 (/141.144.52.6) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Nov 2008 10:16:12 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1227031392.31451.2499.camel@localhost> Thread-Index: AclJqAq5zxEdfuh1SIqvQhePQOTc0QAAE89w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010205.4923066F.001C:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:59907 Archived-At: > i don't know why this didn't occur to me -- i was hung up on modifying > the original list, i guess, not thinking i could just create > a new one. All of the mapping functions are good to know, as is `dolist'. In general, don't even think about modifying list structure. When you really need to do that, you will know it. ;-) See the discussion here about list modification, in thread "Adding Lists/Sequences" (2008-09): http://lists.gnu.org/archive/html/help-gnu-emacs/2008-09/msg00809.html