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 Lists/Sequences Date: Tue, 23 Sep 2008 17:28:46 +0200 Message-ID: <87zlly51ap.fsf@thievol.homelinux.org> References: <3b97cca7-1c31-4e07-ba09-f0aeca96019c@34g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1222183198 17451 80.91.229.12 (23 Sep 2008 15:19:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2008 15:19:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?Nordl=C3=B6w?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 23 17:20:55 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 1Ki9h7-0001Ol-L9 for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Sep 2008 17:20:54 +0200 Original-Received: from localhost ([127.0.0.1]:39413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki9g5-0001qX-LQ for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Sep 2008 11:19:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ki9fk-0001qS-W2 for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:19:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ki9fj-0001pb-DQ for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:19:28 -0400 Original-Received: from [199.232.76.173] (port=34554 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki9fj-0001pG-5m for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:19:27 -0400 Original-Received: from gv-out-0910.google.com ([216.239.58.189]:33697) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ki9fj-00052r-17 for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:19:27 -0400 Original-Received: by gv-out-0910.google.com with SMTP id i36so172091gve.17 for ; Tue, 23 Sep 2008 08:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=GWD0o4mbHJp6mFAK6j/GIfHy2C7TQ3iZnnQtUcup82s=; b=ACg7h/8al9kBNGkUbPMgrdfW4N67fPmzP7vrigxpdFK/80igEXbNzVC1lNIHlT4bEK 7sRQ5egJ1EI0fXCTkrsywM1KOtHktr87QRrQzGXUMO5JeNTaQfBZIsFGi+c1p9nkvMZD JVkwqNV+VQnLn1Y8cCd4WfqDtJCt0EYPhYw2U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=p6TuGs7KNmocvpQ0nkIL6P9ThNj9zmz/tfpK7E7jzwuRHQKXH6MCCa+fL4xTOGN1A6 O85XSujCS5oMr4TRSHxskAFT4+6Bt8jwpDg4j8hUdxPADTuTNOGI3ML9KdP59MT1ocCg c3OMGC8WzZ2HuAKh7RdD3am+x0ZV2RTG09l9o= Original-Received: by 10.103.134.20 with SMTP id l20mr3758890mun.132.1222183164374; Tue, 23 Sep 2008 08:19:24 -0700 (PDT) Original-Received: from thievol.homelinux.org (9.77.197-77.rev.gaoland.net [77.197.77.9]) by mx.google.com with ESMTPS id i5sm1869914mue.11.2008.09.23.08.19.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Sep 2008 08:19:23 -0700 (PDT) In-Reply-To: <3b97cca7-1c31-4e07-ba09-f0aeca96019c@34g2000hsh.googlegroups.com> (=?utf-8?Q?=22Nordl=C3=B6w=22's?= message of "Tue, 23 Sep 2008 04:46:36 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57959 Archived-At: Nordl=C3=B6w writes: > Is there a general function, say foo, that adds lists or, even better, > sequences together? > > I want this > (foo '("a" "b") '("c" "d")) > to evaluate to > '("a" "b" "c" "d") ,---- | ELISP> (nconc '("a" "b" "c") '("d" "e" "f"))=20 | ("a" "b" "c" "d" "e" "f") `---- Note: `append' is not destructive --=20 A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France