From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: `append' vs. `nconc' Date: Thu, 31 Dec 2015 09:31:57 +0200 Message-ID: <87io3fdqfm.fsf@mithlond.arda> References: <568164D8.6050700@ojkastl.de> <87io3iyr7t.fsf@debian.uxu> <87si2kezg1.fsf@mithlond.arda> <87a8osrlj4.fsf_-_@debian.uxu> <87lh8bgafa.fsf@mithlond.arda> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1451547150 10955 80.91.229.3 (31 Dec 2015 07:32:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 07:32:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 31 08:32:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aEXie-0003QF-MU for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2015 08:32:20 +0100 Original-Received: from localhost ([::1]:54930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEXid-0007jb-Tj for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2015 02:32:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEXiQ-0007fn-DM for help-gnu-emacs@gnu.org; Thu, 31 Dec 2015 02:32:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEXiN-0007dj-6P for help-gnu-emacs@gnu.org; Thu, 31 Dec 2015 02:32:06 -0500 Original-Received: from mta-out1.inet.fi ([62.71.2.231]:36314 helo=johanna1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEXiM-0007d9-Sj for help-gnu-emacs@gnu.org; Thu, 31 Dec 2015 02:32:03 -0500 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Original-Received: from mithlond.arda (84.251.143.106) by johanna1.inet.fi (9.0.002.03-2-gbe5d057) id 567CC14800804965 for help-gnu-emacs@gnu.org; Thu, 31 Dec 2015 09:32:01 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.84) (envelope-from ) id 1aEXiK-00016c-OG for help-gnu-emacs@gnu.org; Thu, 31 Dec 2015 09:32:00 +0200 In-Reply-To: (Emanuel Berg's message of "Thu, 31 Dec 2015 04:50:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 62.71.2.231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108547 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Emanuel Berg [2015-12-31 04:50:19+01] wrote: > Teemu Likonen writes: >> Don't modify a list created with '(...). Use (list ...) instead. > > What about the elements of the lists? If they are themselves lists, > can they be created with ' or is this rule a "recursive descent" one? NCONC doesn't touch the elements (i.e., CAR values of conses) so this is fine: (setq foo (nconc (list '(a . 1) '(b . 2)) foo)) =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWhNnwAAoJEHGdadMkU5RQQIgP/1ed9QDB86szgzvsoL5MGd2c 5VByewNQ40Vgu0DozrbbnHb5MCahT7Gla4Qpzu3k8fW6++X1sFOGYq6uePvbcipP 2s0ijoABZWHZ+eTf/22RZD14V16k8xS+KgfIqvqneaHiNM45+nNcqQb+7IwKdSa4 1Fpq8c7+kfUt2mci6aTC7VGxaURz1+FEKbFuE7B7rUlIcApNsocM5Th226pdhr04 FT7CRTYoovm6ReOMBP5jf581GnZ84j1h9Vx+JJ7DyWambI6FbQeVebV1Rdm59wRd GlUcXvfof00EfLRiWuZcKgubqr18Tp0tu05+PrQc3USKbVyyI4BCwKz7wZv1qADa OollpqljZXXjp/RWcjtPO+EjAx8h6BgzCHA5HRNB32MyEvxefxydehUwCoCwiMt/ VT/KvNaJLCzgq1jzFsK0O2IESIESf4fcSsxcOR5pH/8Kdrl5PpQIRWNSJULp/2XD d1qMNb1qGw283w3J1GYyjyT4CGm/AM51AZ+HTt6dtBsK+DRT7ngsL8z+rMzoeLie pE9BpGdQpGI3RM5J2d1kHmbLw1N+wTvydU63cOy8kgrjl9RBH3qmv48fX5rz89iF Bg33veGfNRx3ZLh+3udNELifOUQCKSAK+MO2v14qPw1OyMYl/tl32uUDRl6Jbafp J3nWJ1ARAbugHnvMbVwb =u8Zn -----END PGP SIGNATURE----- --=-=-=--