[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs design and architecture. How about copy-on-write?
From: |
Yuri Khan |
Subject: |
Re: Emacs design and architecture. How about copy-on-write? |
Date: |
Sat, 23 Sep 2023 21:23:00 +0700 |
On Sat, 23 Sept 2023 at 20:09, Dmitry Gutov <dmitry@gutov.dev> wrote:
> I agree: functions like yes-or-no-p will have to, internally in their
> implementation, acquire the "redisplay lock" or whatever it'll be
> called, and do other things to ensure that they work from non-default
> threads too.
That’s not the only possible implementation. A function that wants a
confirmation could package up the prompt with a continuation function,
and post that as a message to the main thread. The main thread would
pump its message queue, display the prompt, and schedule the
continuation (with the prompt result) to a worker thread.
That would require the code using prompt functions to be transformed
to continuation-passing style though, either explicitly in code, or
automatically by the lisp reader.
- Re: Emacs design and architecture. How about copy-on-write?, (continued)
- Re: Emacs design and architecture. How about copy-on-write?, Ihor Radchenko, 2023/09/22
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/22
- Re: Emacs design and architecture. How about copy-on-write?, Ihor Radchenko, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Dmitry Gutov, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Dmitry Gutov, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Ihor Radchenko, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Dmitry Gutov, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?,
Yuri Khan <=
- Re: Emacs design and architecture. How about copy-on-write?, Dmitry Gutov, 2023/09/23
- Re: Emacs design and architecture. How about copy-on-write?, Po Lu, 2023/09/18
- Re: Emacs design and architecture. How about copy-on-write?, Po Lu, 2023/09/18
- Re: Emacs design and architecture. How about copy-on-write?, Ihor Radchenko, 2023/09/18
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/18
- Re: Emacs design and architecture. How about copy-on-write?, Po Lu, 2023/09/18
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/19
- Re: Emacs design and architecture. How about copy-on-write?, Po Lu, 2023/09/19
- Re: Emacs design and architecture. How about copy-on-write?, Eli Zaretskii, 2023/09/20
- Re: Emacs design and architecture. How about copy-on-write?, Po Lu, 2023/09/20