From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Barry Fishman Newsgroups: gmane.emacs.help Subject: Re: local binding, too local... Date: Sat, 08 Dec 2018 14:13:57 -0500 Organization: Easynews - www.easynews.com Message-ID: <7nd0qb6dca.fsf@ecube.ecubist.org> 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: 8bit X-Trace: blaine.gmane.org 1544296404 22447 195.159.176.226 (8 Dec 2018 19:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2018 19:13:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) 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 20:13:20 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 1gVi2S-0005jP-Dd for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 20:13:20 +0100 Original-Received: from localhost ([::1]:51859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVi4Z-0007NC-3p for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 14:15:31 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin.stu.neva.ru!news.neodome.net!news.uzoreto.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer04.fr7!futter-mich.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad!fx45.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:hNzz4k1OconmOTYs11H2YtmbzRI= Original-Lines: 21 Original-X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. X-Received-Bytes: 1599 X-Received-Body-CRC: 3279784381 Original-Xref: usenet.stanford.edu gnu.emacs.help:224791 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:118920 Archived-At: On 2018-12-08 11:41:10 -05, Stefan Monnier wrote: >>       (let* ((bar '(baz quux))) >>         (setf (car bar) 'xyzzy) >>         (let ((plugh (cdr bar))) >>           (message "%s" plugh)))) >> >> Can also be written >> >> (let (bar plugh) >> (setf bar '(baz quux)) >> (setf (car bar) 'xyzzy) >> (setf plugh (cdr bar))) > > Indeed, but you lose a lot of karma points for that, Haven't you already lost all your karma points by modifying a literal list no matter how you do it. ;-) -- Barry Fishman