emacs-devel
[Top][All Lists]
Advanced

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

Re: emacsclient in elisp


From: Stefan Monnier
Subject: Re: emacsclient in elisp
Date: Fri, 21 May 2021 11:29:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> 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)))


-- Stefan




reply via email to

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