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 10:51:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> And as I wrote elsewhere, I don't understand why being able to read
> from stdin like it's a sub-process would be so much better than
> actually using a network process.

When you start such an Emacs process as a subprocess, it saves you from
having to setup a separate communication channel, which requires
agreeing on a channel "name", making sure that name is not already in
use, and can require extra care to avoid security problems.

IOW, I think using stdin/stdout this way is many cases would be The
Right Way and using a separate network/socket/namedpipe would be
a workaround.

> We could introduce such a feature for the batch mode, but it would
> mean serious complications, and I just don't see the justification
> for that.

I'm not volunteering to do the job, admittedly.

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


        Stefan




reply via email to

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