From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: Very simple IDE for programming newbie Date: Sun, 03 Jan 2010 17:44:04 +0100 Organization: Informatimago Message-ID: <87eim7t9yj.fsf@hubble.informatimago.com> References: <87pr5susfb.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262536906 26563 80.91.229.12 (3 Jan 2010 16:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2010 16:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 03 17:41:39 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NRTWL-0004By-22 for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jan 2010 17:41:37 +0100 Original-Received: from localhost ([127.0.0.1]:45423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRTWL-0001r5-HN for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jan 2010 11:41:37 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: individual.net Zd6w7kraWiOooAv+dVjF3Q6TtuK7NWGIaLoJt7/r/yjo7ygf96 Cancel-Lock: sha1:MTYyYzQ4MjA4NGRmZjc5NjFmOTFiNWI1NmFhYzA1NjEwYTY4MmFmMg== sha1:3NbFeUYPB0VJq8jBJmCWRQCnRYo= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:175958 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71030 Archived-At: Sean McAfee writes: > pjb@informatimago.com (Pascal J. Bourguignon) writes: > >> Sean McAfee writes: >> Also, for non-interactive programs, you can do it at once with: >> >> M-x compile RET C-e && ./this-file RET > > Hmm, good idea. I'm trying to look ahead to when we get to > interactive programs too, though. > >> You don't have to wait for the end of the compilation to browse the >> errors. Otherwise, just watch the status bar of the *compilation* >> window, it will say (Compilation:exit []) when done. > > I know; my question was how to a) know when the asynchronous > compilation process has finished, and b) tell whether there were any > errors, so that if there were none, I can immediately launch the > newly-compiled program in a terminal emulator. > > I think the terminal emulator would be preferable to shell-mode, since > in the former case there's only one keystroke that could introduce > some confusion (C-c) and in the latter case there are many. I would just do that: M-x compile RET C-e && ( xterm -e ./this-file & ) RET -- __Pascal Bourguignon__ http://www.informatimago.com/