emacs-devel
[Top][All Lists]
Advanced

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

Re: thunk.el: Document that thunk-force == funcall?


From: Tomas Hlavaty
Subject: Re: thunk.el: Document that thunk-force == funcall?
Date: Wed, 18 Nov 2020 09:01:19 +0100

On Tue 17 Nov 2020 at 18:52, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> (setq lexical-binding t)
>
> Side node: this usually doesn't do what the author thinks it does.

what does it do?

how to turn the *scratch* buffer to lexical binding?

for the quick experiment, i evaluated this

   (setq lexical-binding t)

in the *scratch* buffer and it did what i wanted, namely allowed me to
use lexical binding by default for the purpose of the quick experiment.
i do not know how to switch the *scratch* buffer to lexical binding
otherwise.  without that, closures did not work as i needed.

normally, i write

   ;;; -*- lexical-binding: t -*-

at the beginning of a buffer.

does this do what i think it does, i.e. switch to lexical binding for
the entire buffer?



reply via email to

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