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

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

Re: ~`symbol-function' to get code as list even when byte-compiled?


From: Emanuel Berg
Subject: Re: ~`symbol-function' to get code as list even when byte-compiled?
Date: Mon, 25 May 2015 19:41:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

"Pascal J. Bourguignon" <pjb@informatimago.com>
writes:

> To store state.
>
> Don't store state in the code, use the code to act
> on state stored in variables!

The problem can be restated like this:

A, B, ..., N are arbitrary functions.

At some time they (in any constellation) will be
included in a hook function list.

However, each function should only be executed *once*
and then immediately dropped from that hook.

A, B, ..., and N don't know any of this, and in
particular they don't know what hook they might be
added to.

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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