emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient in elisp


From: Eli Zaretskii
Subject: Re: emacsclient in elisp
Date: Thu, 20 May 2021 21:59:03 +0300

> Cc: bugs@gnu.support, emacs-devel@gnu.org
> From: Daniel Mendler <mail@daniel-mendler.de>
> 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.

You didn't answer part of my question:

> And what would be on the other end of such asynchronous input,
> producing the stuff Emacs is supposed to read?

Without that, I don't think I understand the use case you want to
support in sufficient detail.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]