* Asynchronous shell command in Emacs
@ 2013-09-17 22:27 Suvayu Ali
2013-09-17 22:34 ` Glenn Morris
2013-09-18 14:24 ` Nicolas Richard
0 siblings, 2 replies; 6+ messages in thread
From: Suvayu Ali @ 2013-09-17 22:27 UTC (permalink / raw)
To: Emacs help
Hi,
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.
So my question is, what are the differences between how Emacs does the
two? I see the script runs successfully in both cases. I know this
since I turn on tracing and see it exits with status 0 always; just the
appropriate GUI application fails to open.
Thanks for any thoughts.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Asynchronous shell command in Emacs
2013-09-17 22:27 Asynchronous shell command in Emacs Suvayu Ali
@ 2013-09-17 22:34 ` Glenn Morris
2013-09-17 22:44 ` Suvayu Ali
2013-09-17 23:05 ` Glenn Morris
2013-09-18 14:24 ` Nicolas Richard
1 sibling, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2013-09-17 22:34 UTC (permalink / raw)
To: Suvayu Ali; +Cc: Emacs help
Maybe
http://lists.gnu.org/archive/html/emacs-devel/2009-07/msg00279.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Asynchronous shell command in Emacs
2013-09-17 22:34 ` Glenn Morris
@ 2013-09-17 22:44 ` Suvayu Ali
2013-09-17 23:05 ` Glenn Morris
1 sibling, 0 replies; 6+ messages in thread
From: Suvayu Ali @ 2013-09-17 22:44 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, Sep 17, 2013 at 06:34:46PM -0400, Glenn Morris wrote:
>
> Maybe
> http://lists.gnu.org/archive/html/emacs-devel/2009-07/msg00279.html
Thanks a lot Glenn. :)
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Asynchronous shell command in Emacs
2013-09-17 22:34 ` Glenn Morris
2013-09-17 22:44 ` Suvayu Ali
@ 2013-09-17 23:05 ` Glenn Morris
2013-09-18 9:17 ` Suvayu Ali
1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2013-09-17 23:05 UTC (permalink / raw)
To: help-gnu-emacs
PS upstream report:
https://bugzilla.gnome.org/show_bug.cgi?id=652262
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Asynchronous shell command in Emacs
2013-09-17 23:05 ` Glenn Morris
@ 2013-09-18 9:17 ` Suvayu Ali
0 siblings, 0 replies; 6+ messages in thread
From: Suvayu Ali @ 2013-09-18 9:17 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, Sep 17, 2013 at 07:05:23PM -0400, Glenn Morris wrote:
>
> PS upstream report:
> https://bugzilla.gnome.org/show_bug.cgi?id=652262
>
Thanks again Glenn. I'll try to pursue this further.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Asynchronous shell command in Emacs
2013-09-17 22:27 Asynchronous shell command in Emacs Suvayu Ali
2013-09-17 22:34 ` Glenn Morris
@ 2013-09-18 14:24 ` Nicolas Richard
1 sibling, 0 replies; 6+ messages in thread
From: Nicolas Richard @ 2013-09-18 14:24 UTC (permalink / raw)
To: Suvayu Ali; +Cc: Emacs help
Suvayu Ali <fatkasuvayu+linux@gmail.com> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-09-18 14:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 22:27 Asynchronous shell command in Emacs Suvayu Ali
2013-09-17 22:34 ` Glenn Morris
2013-09-17 22:44 ` Suvayu Ali
2013-09-17 23:05 ` Glenn Morris
2013-09-18 9:17 ` Suvayu Ali
2013-09-18 14:24 ` Nicolas Richard
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).