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

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

Re: How do I pass a variable defined in a wrapping let, to a lambda?


From: Steinar Bang
Subject: Re: How do I pass a variable defined in a wrapping let, to a lambda?
Date: Sat, 12 Mar 2022 17:59:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt)

>>>>> Stefan Monnier via Users list for the GNU Emacs text editor 
>>>>> <help-gnu-emacs@gnu.org>:

> Steinar Bang [2022-03-12 09:53:32] wrote:
>>>>>>> Stefan Monnier via Users list for the GNU Emacs text editor 
>>>>>>> <help-gnu-emacs@gnu.org>:
>>> Eric Abrahamsen [2022-03-11 15:04:30] wrote:
>>>> They've got a lexical-binding cookie at the top of the file, but you 
>>>> don't! :)
>>> That's right.
>>> Nowadays, *all* files with a `.el` extension should have
>>> `-*- lexical-binding:t -*-` somewhere on their first line.

>> Can I do that in .emacs?

> Depends what you mean by "do that".  You can't easily write a chunk of
> ELisp code to put into your init file that will magically cause all
> other files to have that cookie (at least not without probably
> breaking some code somewhere).

> But yes you can have that magic thingy on the first line of your init
> file, just as for any other ELisp file.

I think what I meant was "should I enable lexical-binding in .emacs? Or
am I better off not enabling lexical-binding in .emacs?"

And I figured "probably better off not enabling lexical-binding in
.emacs", and put the function in a separate file.



reply via email to

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