help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Asynchronous shell command in Emacs


From: Nicolas Richard
Subject: Re: Asynchronous shell command in Emacs
Date: Wed, 18 Sep 2013 16:24:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Suvayu Ali <address@hidden> writes:

> I am looking at a problem where xdg-open does not work when called
> asynchronously from Emacs (from `start-process-shell-command', or
> `shell-command' with a trailing &).  It works just fine when called
> synchronously.

I have some notes telling me to try this when facing similar symptoms :
,----
| (let (process-connection-type)
|   (start-process "asy-process" "*error*" "asy" "-f" "pdf" "-V" 
"/tmp/asy5029-5h.asy"))
`----
(asy is Asymptote ; it indeed launches a viewer at the end)

My notes further say:
,----
| : (call-process-shell-command "asy" nil "*error*" nil "-f pdf -V 
/tmp/asy5029-5h.asy")
| works [...] but none of
| : (compile "asy -fpdf -V /tmp/asy5029-5h.asy"))
| or
| : (start-process-shell-command "asy-process" "*error*" "asy -f pdf -V 
/tmp/asy5029-5h.asy")
| will not work as expected, unless process-connection-type is bound to nil.
`----

I'm not sure if this is related to the problem at hand, because in fact
I had no explanation ; Glenn's answer probably has the explanation, but
I'm too ignorant to be sure.

-- 
Nico.



reply via email to

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