From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Async commands in M-x compile Date: Wed, 30 Jun 2010 11:25:15 +0200 Message-ID: <87tyokyiro.fsf@ambire.localdomain> References: <87d3v9mpcq.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277890085 20307 80.91.229.12 (30 Jun 2010 09:28:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 09:28:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Antoine Levitt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 30 11:28:02 2010 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.69) (envelope-from ) id 1OTtaM-00010t-Dr for ged-emacs-devel@m.gmane.org; Wed, 30 Jun 2010 11:28:02 +0200 Original-Received: from localhost ([127.0.0.1]:56877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTtaL-0003XS-AW for ged-emacs-devel@m.gmane.org; Wed, 30 Jun 2010 05:28:01 -0400 Original-Received: from [140.186.70.92] (port=50954 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTtaA-0003WE-Hm for emacs-devel@gnu.org; Wed, 30 Jun 2010 05:27:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTta9-0001Ob-G7 for emacs-devel@gnu.org; Wed, 30 Jun 2010 05:27:50 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:40286) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTta9-0001OO-4m for emacs-devel@gnu.org; Wed, 30 Jun 2010 05:27:49 -0400 Original-Received: from ambire.localdomain (95.244.66.218) by smtp204.alice.it (8.5.124.08) id 4C1A260200D972B8; Wed, 30 Jun 2010 11:27:46 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1OTtXg-0002GK-17; Wed, 30 Jun 2010 11:25:16 +0200 In-Reply-To: <87d3v9mpcq.fsf@gmail.com> (Antoine Levitt's message of "Wed, 30 Jun 2010 00:43:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:126528 Archived-At: () Antoine Levitt () Wed, 30 Jun 2010 00:43:49 +0200 Can someone explain to me why compile doesn't support asynchroneous commands, and especially why it silently fails instead of displaying an error message? I don't understand the mechanism involved here. As a test, try M-x compile with "echo test > ~/test &" or "xclock &". I think you mean to ask for "background" (job control) support. M-x compile is already asynchronous. If you want to the child process to not exit after it places its own children processes in the background, you need to tell it to =E2=80=98wait=E2=80=99, e.g.: M-x compile xclock & wait Note that if you kill the *compilation* buffer, or interrupt (via =E2=80=98C-c C-k=E2=80=99 aka =E2=80=98kill-compilation=E2=80=99) the = child process, most likely all of its children will likewise terminate. Details depend on shell used and how that is initialized. thi