From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: Async commands in M-x compile Date: Tue, 29 Jun 2010 23:20:14 -0400 Message-ID: References: <87d3v9mpcq.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277868043 24384 80.91.229.12 (30 Jun 2010 03:20:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2010 03:20:43 +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 05:20:40 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 1OTnqn-0001yK-PT for ged-emacs-devel@m.gmane.org; Wed, 30 Jun 2010 05:20:38 +0200 Original-Received: from localhost ([127.0.0.1]:44849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTnqm-0007ta-RH for ged-emacs-devel@m.gmane.org; Tue, 29 Jun 2010 23:20:36 -0400 Original-Received: from [140.186.70.92] (port=36015 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTnqd-0007sA-2b for emacs-devel@gnu.org; Tue, 29 Jun 2010 23:20:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTnqc-0000w3-4N for emacs-devel@gnu.org; Tue, 29 Jun 2010 23:20:26 -0400 Original-Received: from splat.raeburn.org ([69.25.196.39]:64312 helo=raeburn.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTnqU-0000vG-CU for emacs-devel@gnu.org; Tue, 29 Jun 2010 23:20:26 -0400 Original-Received: from squish.raeburn.org (squish.raeburn.org [10.0.0.172]) by raeburn.org (8.14.3/8.14.1) with ESMTP id o5U3KEUd005184; Tue, 29 Jun 2010 23:20:15 -0400 (EDT) In-Reply-To: <87d3v9mpcq.fsf@gmail.com> X-Mailer: Apple Mail (2.1081) 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:126522 Archived-At: On Jun 29, 2010, at 18:43, Antoine Levitt wrote: > Hello, >=20 > 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. The program run -- the shell -- exits (after having started some other = program in background). The compilation command has finished, and = exited with an exit status that indicates success. So, you're done. I = could argue that it "succeeded", though apparently not at doing whatever = it is that you think it should do. > As a test, try M-x compile with "echo test > ~/test &" or "xclock &". Why would you need something like that? Compilation mode already lets = you continue doing stuff in Emacs while the compilation runs. And you = can use something like "make -j" to run multiple tasks in parallel, = without losing track of the exit statuses of subprocesses, like you = would with "&". If you're not actually trying to do compilation, but just run some task = in background without monitoring its progress or parsing error messages = after failure, there's shell-mode, or you can give shell-command (M-!) a = command ending with "&". Ken=