|
From: | Jim Porter |
Subject: | Re: continuation passing in Emacs vs. JUST-THIS-ONE |
Date: | Thu, 16 Mar 2023 22:37:16 -0700 |
On 3/16/2023 8:08 PM, Stefan Monnier wrote:
BTW the above code can't work right now. Part of the issue is the management of `current-buffer`: should the composition of futures with `futur-let*` save&restore `current-buffer` to mimic more closely the behavior one would get with plain old sequential execution? If so, should we do the same with `point`? What about other such state?
How about doing what threads do?
Each thread also has its own current buffer and its own match data.
If nothing else, consistency makes this easier to remember. (And if more stuff should be saved and restored, it would probably be good to add those to threads too.)
[Prev in Thread] | Current Thread | [Next in Thread] |