From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Understanding the "let" construct and the setting of variables Date: Thu, 17 Dec 2020 09:10:54 +0100 Message-ID: <87o8is26nu.fsf@fastmail.fm> References: <87zh2d1byp.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27785"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 27.1.50 Cc: help-gnu-emacs@gnu.org To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 09:12:36 2020 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 1kpoOp-000795-Vn for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 09:12:35 +0100 Original-Received: from localhost ([::1]:54624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpoOp-0000oX-1A for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 03:12:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpoOL-0000oJ-Mx for help-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:12:05 -0500 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:34429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpoOE-0001xc-5o for help-gnu-emacs@gnu.org; Thu, 17 Dec 2020 03:12:05 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 49ED1588; Thu, 17 Dec 2020 03:11:54 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 17 Dec 2020 03:11:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=yR9rAOIh7ZrYJ/J+vg/YUymuT/ YkZkGTkCukNP3zRyk=; b=fK9hxwl+OASXsdnQ1cjGeoqtk6xZF0NsRJ3KDoS+kz h/YlGzoBOA49jjrv4mhLnQh7KWpyTXfeVHoW60IWx2MiKSkuRmqSJ79uldV3Miyz rAF1s5/ql6FfWM7FjaEQ5woy3MLI7Gh+44jSmf0jDOTjxGYs1cpd289kUglOa8yN NOr/MV6n5Na0SGZK220Y8rs09pakKdZYEgNIDOhxZyWMAlf5But+mrkY6PSXBSyo R/PHLdxxzQrTy49oNR1687iyFeNPNK2XNizzmpZCiqtHBJQyfczTNjTcJRk6miPn s83acIfwOk9qeljWVzquDAJ928atLeG4q0D2wsS4V7eQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=yR9rAO Ih7ZrYJ/J+vg/YUymuT/YkZkGTkCukNP3zRyk=; b=bli4ATkb8On3E9LVejcxp0 sz4QeoFgWYRLrBzG67q3CG8e/NyjKGCgdDsaLynQVPxgeXqcPY74Uixvgol0pg4L yNjN/2M1jSKm9fu+IPHPXQFLXR1OT9ys9oDDsjqcaoNjm2Jc7xatdJvFSI88nP/p IfbFYeD/4i9In0BF/2BrgOZXlaRtApi9lSmqvoz0zmJC7URXcHzi0qFXXDNzoiH0 XqzPJVD/04AtUcFts8qcTHgi/gO1Hn6FtSYgKHoxIg2L/4qitjryky6uUiSmUlTO uVeczc27juWENS0c3E6wB9XES7dGKsTmQrWJ5E+cRCSXYVdJ4o0N27B8BJ2kNviQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelfedguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgv mhgvrhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpedviefhteeuve ekudetheduieehvdelgfeijeehvdetfeegleelhefhjeduieejveenucfkphepleehrdel tddrvddvgedrvdegieenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrih hlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0f6.dynamic.kabel-deutschland.de [95.90.224.246]) by mail.messagingengine.com (Postfix) with ESMTPA id A1B0724005D; Thu, 17 Dec 2020 03:11:52 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=64.147.123.19; envelope-from=joostkremers@fastmail.fm; helo=wout3-smtp.messagingengine.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 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:126454 Archived-At: On Thu, Dec 17 2020, steve-humphreys@gmx.com wrote: > Finally I got some useful information (ielm). Fantastic. > > ACCEPTED: Running function has created a global variable `tim` (plus all the other > variables you've setq'ed), and since there are no packages or namespaces in > Elisp, your variable is now available to all of Emacs. > > QUESTION: What happens if one does a "setq" on a variable defined in the binding part of the > "let"? Can one do that? Yes, inside the body of the `let`, you can. > QUESTION: What goes in the body of a "let"? I would think I can use the variables defined within > the binding section of "let". Yes. > QUESTION: Can one update a variable in the body of the "let" (the variable being defined within > the binding section of "let"). Yes, with `setq`. -- Joost Kremers Life has its moments