From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: & and M-& to run programs asynchronously Date: Tue, 07 Jul 2009 02:51:00 +0300 Organization: JURTA Message-ID: <873a9a266b.fsf@mail.jurta.org> References: <87hcbkpo0e.fsf@gmail.com> <87zlmfpov5.fsf@jurta.org> <87tz20660j.fsf@yahoo.com> <873a9km3fh.fsf@mail.jurta.org> <87y6rbgez1.fsf@CPU107.opentrends.net> <87hbxy373a.fsf@mail.jurta.org> <87zlbps06o.fsf@mail.jurta.org> <87fxded5wg.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246928373 12302 80.91.229.12 (7 Jul 2009 00:59:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2009 00:59:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: ferkiwi+a@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 07 02:59:26 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MNz1o-0003yK-6t for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 02:59:24 +0200 Original-Received: from localhost ([127.0.0.1]:58326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNz1n-0004Cv-Jb for ged-emacs-devel@m.gmane.org; Mon, 06 Jul 2009 20:59:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNz1h-0004AY-Se for emacs-devel@gnu.org; Mon, 06 Jul 2009 20:59:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNz1d-0004A8-5M for emacs-devel@gnu.org; Mon, 06 Jul 2009 20:59:17 -0400 Original-Received: from [199.232.76.173] (port=39056 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNz1c-0004A5-Vt for emacs-devel@gnu.org; Mon, 06 Jul 2009 20:59:13 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:49776 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNz1c-0001ID-9v for emacs-devel@gnu.org; Mon, 06 Jul 2009 20:59:12 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.30.29.cable.starman.ee [82.131.30.29]) by mx2.starman.ee (Postfix) with ESMTP id 7FA323F40A2; Tue, 7 Jul 2009 03:59:04 +0300 (EEST) In-Reply-To: (Fernando's message of "Sun, 5 Jul 2009 21:42:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112113 Archived-At: > I don't know if it's worth to open a new thread, but as this one is > related I'll like to report some problem I've had while testing the > new "&" command (dired-do-async-shell-command). > > If you use it to execute a command that opens a child process then it > will have no effect at all, the parent process will be finished and no > program will be executed. You can reproduce this if you execute & > xdg-open (freedesktop command for opening a file). > > dired-do-shell-command does work when you use it to execute xdg-open, > but it will run the program synchronously. > > Would it be possible to fix this so that "&" waits for child processes > running asynchronously to finish? I see that running `M-! xdg-open file &' works correctly on KDE, but fails on Gnome. Is this an Emacs bug at all? -- Juri Linkov http://www.jurta.org/emacs/