From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: binding question Date: Sun, 06 Oct 2013 12:14:26 +0200 Message-ID: <87fvse1zb1.fsf@zigzag.favinet> References: <87li267ndp.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1381054295 943 80.91.229.3 (6 Oct 2013 10:11:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Oct 2013 10:11:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 12:11:39 2013 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 1VSlJK-0002qA-R1 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Oct 2013 12:11:38 +0200 Original-Received: from localhost ([::1]:54430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSlJK-0004Ng-8e for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Oct 2013 06:11:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSlJ4-0004MU-Nz for help-gnu-emacs@gnu.org; Sun, 06 Oct 2013 06:11:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSlIz-0004xJ-Ac for help-gnu-emacs@gnu.org; Sun, 06 Oct 2013 06:11:22 -0400 Original-Received: from smtp209.alice.it ([82.57.200.105]:5033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSlIz-0004ts-02 for help-gnu-emacs@gnu.org; Sun, 06 Oct 2013 06:11:17 -0400 Original-Received: from zigzag.favinet (95.236.26.25) by smtp209.alice.it (8.6.060.28) id 52443BB002470A56; Sun, 6 Oct 2013 12:11:12 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1VSlMC-00020V-Ee; Sun, 06 Oct 2013 12:14:36 +0200 In-Reply-To: <87li267ndp.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sun, 06 Oct 2013 17:35:30 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.105 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:93866 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Eric Abrahamsen () Sun, 06 Oct 2013 17:35:30 +0800 What's the best way of handling this? Check out =E2=80=98copy-tree=E2=80=99, e.g.: (let ((list-template (copy-tree list-template))) ...) See also: http://www.emacswiki.org/emacs/ElispCookbook which compares =E2=80=98copy-sequence=E2=80=99 and =E2=80=98copy-tree=E2=80= =99 in section "Copying". WRT, lexical vs dynamic binding, the code is written to assume dynamic binding, so you might want to explicitly set =E2=80=98lexical-binding=E2=80= =99 to nil somewhere. =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlJROAUACgkQZwMiJEyAdQL95wCgwNk1ljuZIsOPWO8JJa3mbRX5 9EEAn2Kfoh50Zo+njHIInWVMzhcYqzGe =jZOl -----END PGP SIGNATURE----- --=-=-=--