[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
- Re: emacsclient in elisp, (continued)
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/20
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp,
Stefan Monnier <=
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/22
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/22
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/22
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/22
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/22
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/22