From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandr Vityazev Newsgroups: gmane.emacs.help Subject: Re: Appending lists Date: Mon, 14 Jun 2021 18:21:42 +0000 Message-ID: <87o8c8l32h.fsf@posteo.net> References: <4tl1yvylvg1fxx5eefjs9mnk.1623688568572@email.android.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39800"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu org" , Pierpaolo Bernardi To: henri-biard@francemel.fr Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 14 20:21:54 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsrDe-000A5Q-RK for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Jun 2021 20:21:54 +0200 Original-Received: from localhost ([::1]:41404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsrDd-0007uq-QD for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Jun 2021 14:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsrDE-0007tz-J4 for help-gnu-emacs@gnu.org; Mon, 14 Jun 2021 14:21:28 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:41159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsrDC-0002cC-1E for help-gnu-emacs@gnu.org; Mon, 14 Jun 2021 14:21:28 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B55C924002A for ; Mon, 14 Jun 2021 20:21:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623694881; bh=XgZVIiQdzZSLDWGwVR7yHgxI3E9IVYWZaaN19AIZpKg=; h=From:To:Cc:Subject:Date:From; b=rw6hIFe/ShSi3XVLKD8YOxRlhDcHvE8B/udu506HbZ6bum0LdCL62Qa0pZL4FmACZ SiAk27OVYQJ5xMvl1Zcd1myslAqTCAVFIgo5RTd/Jlx8mlPUTWadiF+wX1F3U8Tmsv +bxxB0P6TK0YD5QRXE5++Cj/JcCZn31/20r/u3uEznoOLkWSxSxXj2de0+dCIIW/lQ ZgDsHU+s9+SzPFulPQMNLQXpKi4HOY+mM6cPpI1Vz9A6Xj0NVKODORWeKcOzyhBSLE AEimPWpYYhqAUiWJIcnktAjVInKtjXKumFj8aCcbvYXQkuAfVhxQcln3LShGvnJOYQ eLRUdIZrc1Qdw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G3fsX4sDLz9rxb; Mon, 14 Jun 2021 20:21:20 +0200 (CEST) In-Reply-To: (henri-biard@francemel.fr's message of "Mon, 14 Jun 2021 18:40:23 +0200 (CEST)") Received-SPF: pass client-ip=185.67.36.65; envelope-from=avityazev@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130821 Archived-At: On 2021-06-14, 18:40 +0200, henri-biard@francemel.fr wrote: > I want to make a new list named newlist to be > > > > =C2=A0(append city district) > > > > and put the new list into a new list. > > > > > I want to end up the equivalent of=20 > > (defvar newlist > '( ("London" . 1)=C2=A0 ("Paris" . 2) ("Madrid" . 3)=C2=A0 ("Greenwich" .= 1) ("Louvre" . 2) ("Centro" . 3) ) )=20 (defvar newlist '()) (append `(,city ,district) newlist) --=20 Best regards, Alexandr Vityazev