From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: M-x compile for different file extensions Date: 21 Oct 2002 18:40:49 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035226302 1693 80.91.224.249 (21 Oct 2002 18:51:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 18:51:42 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 183heN-0000Qe-00 for ; Mon, 21 Oct 2002 20:51:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 183heR-0004O4-00; Mon, 21 Oct 2002 14:51:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!news.chips.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1035225649 24228 9.2.16.245 (21 Oct 2002 18:40:49 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 21 Oct 2002 18:40:49 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: shelby.stanford.edu gnu.emacs.help:106251 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2799 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2799 I just use makefiles everywhere. The advantage of compiling within emacs is more than just the convenience of not having to go off to a shell window. It's using M-x next-error to step through the errors and have emacs go right to the file and line you need to fix. "wgh" writes: > > Is there a way to have M-x compile to automatically detect > what command to use depending on the file extension of the > current buffer being edited? > > Because I don't really see the advantage of using M-x compile > if I can get away with fewer keystrokes in Bash doing the > exact same thing (i.e. typing the compile command, pressing > the up arrow if I need to recompile, etc.) -- -- Ken Goldman kgold@watson.ibm.com 914-784-7646