From: Michael Albinus <michael.albinus@gmx.de>
To: Thomas Koch <thomas@koch.ro>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Missing simple way to call external process in Emacs?
Date: Sat, 11 Mar 2023 15:54:18 +0100 [thread overview]
Message-ID: <87zg8jfied.fsf@gmx.de> (raw)
In-Reply-To: <1804582203.312652.1678539742336@office.mailbox.org> (Thomas Koch's message of "Sat, 11 Mar 2023 15:02:22 +0200 (EET)")
Thomas Koch <thomas@koch.ro> writes:
Hi Thomas,
> This is a sidenote from my previous email on continuations passing[1].
>
> [1] https://lists.gnu.org/archive/html/emacs-devel/2023-03/msg00430.html
>
> It seems to me, that shell-command is used a lot from elisp code also
> in Emacs core, although its docstring says:
>
> """In Elisp, you will often be better served by calling call-process or
> start-process directly, since they offer more control and do not
> impose the use of a shell (with its need to quote arguments)."""
>
> Apparently, shell-command is the most convenient way in Emacs core to
> just run an external process and consume its output. However as
> https://debbugs.gnu.org/12145 shows it can quickly lead to problems.
What about `process-lines'? It uses `call-process'.
Best regards, Michael.
prev parent reply other threads:[~2023-03-11 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-11 13:02 Missing simple way to call external process in Emacs? Thomas Koch
2023-03-11 14:54 ` Michael Albinus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg8jfied.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=thomas@koch.ro \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).