Re: multi-threaded Emacs

From:

Stefan Monnier

Subject:

Re: multi-threaded Emacs

Date:

Sun, 07 Dec 2008 15:52:48 -0500

User-agent:

Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> Each thread should have its own local bindings. To do this
>> requires swapping bindings in and out of the specpdls
>> when switching threads. It is not hard.
> Currently my guess is that generalizing the existing
> buffer-local/frame-local/terminal-local machinery to include
> thread-local is going to work well, with fairly limited changes.
> That seems like a misunderstanding.
No, it's not a misunderstanding. I'm just suggesting a different
implementation technique.
> What I am talking about does not involve adding another kind of
> binding. It is a matter of correctly implementing the existing kinds
> of binding in the context of multiple threads.
Indeed, it is, and there several alternatives.
Stefan