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: Adam Porter
Subject: Re: thunk.el: Document that thunk-force == funcall?
Date: Thu, 17 Dec 2020 20:58:09 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
>> Actually I have one real-life example:
>
> An example involving side effects: being able to create a function
> that one can add to a hook that performs some kind of (expensive) setup
> but only when called for the first time.

FYI, someone recently showed me that the letrec macro can be used to do
this.  There's an example of it in the Elisp manual, section 12.3 Local
Variables (added about a year ago, so I think most Emacs users don't
know of it yet).




reply via email to

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