help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Understanding the "let" construct and the setting of variables


From: Christopher Dimech
Subject: Re: Understanding the "let" construct and the setting of variables
Date: Fri, 18 Dec 2020 22:27:26 +0100

> Sent: Friday, December 18, 2020 at 7:12 PM
> From: "Jean Louis" <bugs@gnu.support>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Understanding the "let" construct and the setting of variables
>
> * Emanuel Berg via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org> [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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]