From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: local binding, too local... Date: Sat, 8 Dec 2018 01:33:37 -0800 (PST) Message-ID: References: <0583DE39-42E2-4D05-97F6-3D709DBC73FE@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544261618 16345 195.159.176.226 (8 Dec 2018 09:33:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2018 09:33:38 +0000 (UTC) Injection-Date: Sat, 08 Dec 2018 09:33:38 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 08 10:33:34 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVYzN-000497-PD for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 10:33:33 +0100 Original-Received: from localhost ([::1]:50121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVZ1U-0004qi-70 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 04:35:44 -0500 X-Received: by 2002:a0c:9219:: with SMTP id a25mr3955048qva.39.1544261618087; Sat, 08 Dec 2018 01:33:38 -0800 (PST) X-Received: by 2002:aed:2a0c:: with SMTP id c12mr63980qtd.2.1544261617919; Sat, 08 Dec 2018 01:33:37 -0800 (PST) Original-Path: usenet.stanford.edu!v55no3118706qtk.0!news-out.google.com!m21ni1512qta.0!nntp.google.com!v55no3118696qtk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=42.106.241.27; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 42.106.241.27 Original-Xref: usenet.stanford.edu gnu.emacs.help:224787 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:118916 Archived-At: Yuri wrote: =C2=A0 =C2=A0 =C2=A0 (let* ((bar '(baz quux)))=20 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setf (car bar) 'xyzzy)=20 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (let ((plugh (cdr bar)))=20 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (message "%s" plugh))))=20 Can also be written (let (bar plugh)=20 (setf bar '(baz quux)) (setf (car bar) 'xyzzy) (setf plugh (cdr bar))) IOW declare variables without initializers. Then write 'normal'imperative c= ode