From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: M-x compile for different file extensions Date: Tue, 22 Oct 2002 08:46:14 +0200 Organization: University of Dortmund, Germany Sender: emacs-devel-admin@gnu.org Message-ID: <84fzuzvumh.fsf@crybaby.cs.uni-dortmund.de> References: <200210200000.g9K00B5d021923@beta.mvs.co.il> <200210201807.g9KI7H02011888@beta.mvs.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035274517 12211 80.91.224.249 (22 Oct 2002 08:15:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2002 08:15:17 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 183uC4-0003Ah-00 for ; Tue, 22 Oct 2002 10:15:16 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 183uDB-0002MP-00 for ; Tue, 22 Oct 2002 10:16:25 +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 183u98-0003St-00; Tue, 22 Oct 2002 04:12:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 183u87-0002O1-00 for emacs-devel@gnu.org; Tue, 22 Oct 2002 04:11:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 183u81-00020s-00 for emacs-devel@gnu.org; Tue, 22 Oct 2002 04:11:08 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 183u7z-0001w3-00 for emacs-devel@gnu.org; Tue, 22 Oct 2002 04:11:04 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 183u70-0002fX-00 for ; Tue, 22 Oct 2002 10:10:02 +0200 Original-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 183tvF-0001Vv-00 for ; Tue, 22 Oct 2002 09:57:53 +0200 Original-Path: not-for-mail Original-Lines: 42 Original-NNTP-Posting-Host: crybaby.uni-duisburg.de Original-X-Trace: main.gmane.org 1035273473 5275 134.91.30.116 (22 Oct 2002 07:57:53 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Tue, 22 Oct 2002 07:57:53 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:kYMIztHADkOKPmRdjWht3Pnrnwg= Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8642 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8642 Richard Stallman writes: > 1. There are many independent (small) programs which are > not part of a big project and so there is no need for make file. > > Isn't a makefile as good a way as any to specify the right commands > to use to compile them? I think that people have an irrational fear of Makefiles. For example, colleagues were asking me about how to compile C++ programs from within Emacs for a beginners' course on C++ "without using makefiles because these are just beginners and not even CS students and makefiles are so difficult". Then I explained to them that the empty (or non-existing) makefile is good enough (if they use GNU make at least, and call their programs foo.cc). They were really surprised and the last I heard from them was "wow, that's simple". But something that might be useful would be to auto-select a make target, so that editing foo.cc means that the default command is "make foo" (or "make -k foo", if you must) and not "make -k". I don't know if this is practical. How about adding some more advertisement for make to the Emacs documentation somewhere? Strictly speaking, the Emacs manual is the wrong spot for this, but maybe it would help a number of users. [time passes, which is its job] There is one argument in favor of automatically selecting the right compile command. Suppose a user has a lot of *.giggle files and they want to run "mumblefrotz" on them to produce *.stiffle files. Suppose that the *.giggle files are all over the place, not just in one directory. Then it might be convenient for these users to select the compile-command based on the major mode of the buffer, instead of writing makefiles everywhere with basically the same contents. (The user might not have the right to edit the global make.rules file.) kai -- ~/.signature is: umop ap!sdn (Frank Nobis)