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: Fri, 21 May 2021 21:36:56 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: mail@daniel-mendler.de,  bugs@gnu.support,  emacs-devel@gnu.org
> Date: Fri, 21 May 2021 11:29:29 -0400
> 
> >> Maybe the easiest way to solve this would be to provide a function
> >> `make-stdin-process` which returns a process-object associated to
> >> stdin/stdout (instead of trying to change `read-from-minibuffer`).
> >
> > In batch mode only or in other modes as well?
> 
> I think the only important case is batch mode, so the interactive case
> is not terribly important.
> 
> > And how would you use such a process?
> 
> You'd replace the loop I suggested with something like
> 
>     (let ((proc (make-stdio-process)))
>       (set-process-filter proc #'process-command)
>       (while t (sleep 86400)))

This would probably mean we need to reimplement reading from
minibuffer in batch mode.



reply via email to

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