From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Understanding the "let" construct and the setting of variables Date: Fri, 18 Dec 2020 22:27:26 +0100 Message-ID: References: <873603164g.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6322"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 18 22:28:56 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 1kqNJ2-0001Zd-9N for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 22:28:56 +0100 Original-Received: from localhost ([::1]:42944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqNJ1-0006Bp-7T for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 16:28:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqNIB-00069Z-RU for help-gnu-emacs@gnu.org; Fri, 18 Dec 2020 16:28:03 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:34471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqNI9-0006G9-Jo for help-gnu-emacs@gnu.org; Fri, 18 Dec 2020 16:28:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608326846; bh=nU+gkj1OxbFxnzfDjpUG4wLIbX7mLhM93I9RriP49Hg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VHuyzwd5RnP1R8TfFbuAJNW9hhwRqIfaPlUwYjrPF9zgBZsS8TXebyzU+RpDMSw7c Ur9kmMqSV2Mped9O4DVuWaNtBL+y9BUoSFoCJTs5waJrv+BpEB1W+srISXff02SZZK EH0jrQliEHQYFOnG7mmkrgOJadr06M0wm7OXQhjY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Fri, 18 Dec 2020 22:27:26 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:h/0p30DU+TgdaC3fCtQPgbXvz1IaoyAhpMAAjWdVEVzapbQ9UUCRP0eTozVMODyFEihx2 2yZSkDLYesqkwsPiD/aPSghIFdXeXJdFI46QfwC+k4KgMrIEcMMwzb/zQkD7o2w3v392rmP4AsXO zM3TKzm9h3Sgs8mDkS83fnH6JHkoARq/ViMpWaNHLwqybspDagpDb5Rpmw/ryilI5qoSSxESGdpC qkEPnRpO6EvzMno3381SnD8ig1f7HokvEfpJnUHhVHUJ1Y3ePn+sb5JvQBKzXcJe+7lmgSypx4Oa 2Q= X-UI-Out-Filterresults: notjunk:1;V03:K0:taemGj7tlL0=:jfz7HkVc4mT9S57aVtvDlF Im5LpS7l4LIEDFCGeIBum22vag8uUDgt8q6YNGQSM0LatHGTWjK+IrtdX4Aop757/YPZCf9Cu p+08aItvrknWbHOFJZ8dDG9JOSOKBCSxeQTH5sJXjRi7aJ3PjixxtvYqSqdOxy3UP15S/vXe8 s5xt6bLwFqXSYx09nyIJN8PgDJF7Qk3aynP97nekjaNboquRr8NtAhBf3zsNYQEQ/wadgIvLR mBSqNAtiuEOc/vSe1xF8KW6BANBxpPizPNjkvk47EspMUNenxqq6PA1GiNtF5qh/4ZrrkNlpB yladjj5iqc51zf1sYlm3QxSVr5zqGx1dCiHbVcTorSEwz6wUjuP+urSuQF0A/0xVKnZ3wANG9 eJjbKbaHA8e10dzOGYhIPNFPkhUwOIeUEfzWWcUnnuYnu6tptIRTc5urMbQXugfG+Njs0QHbh CfC4AYX5TU7CQ7RV8VcMFEQgktOLkQz4Z+qWA0vq2h2eSf8dpiz6QNDaZBHBmtykbaSUzbI/a 3/OXzNpakDWbVbXsD1lfEna02EY/ricy4gE1cES1IHoAUNtU1kSGQvXAiyIGpYVqJJUXHShRo xgAKJqqfPLDvQ= Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:126536 Archived-At: > Sent: Friday, December 18, 2020 at 7:12 PM > From: "Jean Louis" > To: help-gnu-emacs@gnu.org > Subject: Re: Understanding the "let" construct and the setting of variab= les > > * Emanuel Berg via Users list for the GNU Emacs text editor [2020-12-18 18:43]: > > > > 3. if that isn't enough to use let/let* because several > > functions need to access a variable, use `setq' at the base > > level (i.e., first char of the line, or column 0) - not > > that Elisp has only one level, really, which is why you > > should use `setq' there to avoid confusion and errors. > > Because everyone can see what is created by `setq', this > > should be visible in the code style as well. > > > > Note that just because it would seem that two functions > > need access to the same variable, this actually doesn't > > have to be the case at all! Think it thru one extra time > > before you do it. > > Instructions like that belong on a website where they become easily > searchable for other users to understand it. > > We could index all the mailing list easily and provide search engine > for this. Right, we've got some real hot shit on this mailing list. Very good.