[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclient in elisp
From: |
Daniel Mendler |
Subject: |
Re: emacsclient in elisp |
Date: |
Thu, 20 May 2021 19:49:38 +0200 |
On 5/20/21 6:40 PM, Stefan Monnier wrote:
>>> Yes, synchronously reading from stdin is supported. But it is not
>>> possible to do this asynchronously, or is it? This was specifically the
>>> functionality I have been looking for.
>> What do you mean by that? how can Emacs read input _asynchronously_
>> when reading is inherently a synchronous operation?
>
> I think the problem is that in batch mode, `read-from-minibuffer` is not
> only synchronous (which is fine) but it doesn't perform any async
> processing, like running process filters and timers while waiting for
> the input from stdin.
Exactly. Reading from stdin hangs up the whole process and I would like
it to handle the other process filters in the background while Emacs is
waiting on stdin for input. Reading from stdin should not get a special
treatment in terms of scheduling. There should be a possibility to read
from stdin using a similar API as `make-network-process` with a filter
and sentinel for EOF.
Daniel
- emacsclient in elisp, Daniel Mendler, 2021/05/19
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/19
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/19
- Re: emacsclient in elisp, T.V Raman, 2021/05/19
- Re: emacsclient in elisp, Jean Louis, 2021/05/20
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/20
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/20
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/20
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/20
- Re: emacsclient in elisp,
Daniel Mendler <=
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/20
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/20
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/20
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/20
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21