[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: User interaction from multiple threads
From: |
hw |
Subject: |
Re: User interaction from multiple threads |
Date: |
Sat, 01 Sep 2018 19:33:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Uday S Reddy <address@hidden> writes:
> Eli Zaretskii writes:
>
>> As a trivial example, consider 2 threads, one copying files, the other
>> removing files. How do you know whether to confirm or not when the prompt
>> says just "FOO (y or n)?"
>
> At a minimum, the elisp coder would have to give fuller prompts, e.g.,
>
> copy FOO (y or n)?
> remove FOO (y or n)?
>
> But still it is dangerous. If a "remove FOO?" prompt comes in the middle of
> a series of "copy FOO?" prompts, the user is not going to notice that the
> context has changed.
right
> The best solution is to lock the user interaction until all the
> prompts of one kind are done.
Then how do I save my work before dealing with the prompts so at least
that is save when something crashes while I am being forced to answer
them? :~Z 'C-x s' tends to prompt me ...
Not that I would let Emacs force me, it's just for the sake of the
argument.