From: Thomas Koch <thomas@koch.ro>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Missing simple way to call external process in Emacs?
Date: Sat, 11 Mar 2023 15:02:22 +0200 (EET) [thread overview]
Message-ID: <1804582203.312652.1678539742336@office.mailbox.org> (raw)
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.
Pfuture[2] might be a better alternative, however it is not on Elpa. I put the pfuture author in BCC.
[2] https://github.com/Alexander-Miller/pfuture
next reply other threads:[~2023-03-11 13:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-11 13:02 Thomas Koch [this message]
2023-03-11 14:54 ` Missing simple way to call external process in Emacs? Michael Albinus
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=1804582203.312652.1678539742336@office.mailbox.org \
--to=thomas@koch.ro \
--cc=emacs-devel@gnu.org \
/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).