From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Wanted: Adding list-elements into an existing list Date: Thu, 16 Oct 2008 20:28:18 -0400 Organization: A noiseless patient Spider Message-ID: References: <874p3cvfwy.fsf@zeekat.nl> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224204137 26900 80.91.229.12 (17 Oct 2008 00:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 00:42:17 +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 Oct 17 02:43:17 2008 connect(): Connection refused 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 1KqdQy-0000d4-GG for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 02:43:17 +0200 Original-Received: from localhost ([127.0.0.1]:52309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqdPs-0006vu-EF for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 20:42:08 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.glorb.com!feeder.erje.net!news.motzarella.org!motzarella.org!barmar Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: september.motzarella.org U2FsdGVkX1+ogQR7HsYh0r7/BJG4BPkb8+dAQBO8kAy2wYOzLPw0d5yS7yQ4HQ/Hqn0tMhTNYX3Bq/fpdRmydAhgL6/RIvFsxEr4KSzdo6gOoJXnscnx181Ob9uux/fZ5sU/FSOoY1WXXGAVneBToQ== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Fri, 17 Oct 2008 00:28:19 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/Hsq3gQ8lz82nlYtcBhxxMw8r6O21tZPE= Cancel-Lock: sha1:NDxYawVIbBdBF2X6mq35TwF8lzc= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:163518 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:58859 Archived-At: In article , Nordlöw wrote: > (append) does not modify its first argument which is what I want. > > I can solve it through > (setq x (append x y)) > > but before I create this new function for this I just wanted to make > sure that no such function already exists.... nconc is like append, but modifies the first argument. But you still have to use (setq x (nconc x y)), in case x is initially the empty list, because you can't modify the empty list in place. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***