From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacsclient in elisp Date: Thu, 20 May 2021 19:00:18 +0300 Message-ID: <83o8d5o0od.fsf@gnu.org> References: <00ce8ae3-bb21-c58f-cd32-c196f146842b@daniel-mendler.de> <6fed43bb-d880-bcd5-6f6f-004b6182e539@daniel-mendler.de> <83pmxlo2z0.fsf@gnu.org> <922437d2-74ca-a7aa-cd1d-060f31d383e6@daniel-mendler.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, bugs@gnu.support, emacs-devel@gnu.org To: Daniel Mendler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 20 18:07:23 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljlCl-0000HI-FK for ged-emacs-devel@m.gmane-mx.org; Thu, 20 May 2021 18:07:23 +0200 Original-Received: from localhost ([::1]:47240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljlCk-0000rw-Cu for ged-emacs-devel@m.gmane-mx.org; Thu, 20 May 2021 12:07:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljl66-0008IZ-Ta for emacs-devel@gnu.org; Thu, 20 May 2021 12:00:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37766) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljl62-0006Xz-MT; Thu, 20 May 2021 12:00:29 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1539 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljl60-0003RB-Ns; Thu, 20 May 2021 12:00:26 -0400 In-Reply-To: <922437d2-74ca-a7aa-cd1d-060f31d383e6@daniel-mendler.de> (message from Daniel Mendler on Thu, 20 May 2021 17:52:31 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269502 Archived-At: > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: Daniel Mendler > Date: Thu, 20 May 2021 17:52:31 +0200 > > On 5/20/21 5:10 PM, Eli Zaretskii wrote: > >> It would be useful to have Emacs that can read stdin. > > > > Emacs already is capable of doing that, see the node "Input Streams" > > in the ELisp manual. > > 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? And what would be on the other end of such asynchronous input, producing the stuff Emacs is supposed to read?