emacs-devel
[Top][All Lists]
Advanced

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

Re: Missing simple way to call external process in Emacs?


From: Michael Albinus
Subject: Re: Missing simple way to call external process in Emacs?
Date: Sat, 11 Mar 2023 15:54:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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.



reply via email to

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