From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: M-x compile for different file extensions Date: Sun, 20 Oct 2002 15:51:38 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210201951.g9KJpc312592@rum.cs.yale.edu> 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 1035143722 21304 80.91.224.249 (20 Oct 2002 19:55:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 19:55:22 +0000 (UTC) Cc: rms@gnu.org, wgh@askme.ok, henrik+news@enberg.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 183MAS-0005XQ-00 for ; Sun, 20 Oct 2002 21:55:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 183N40-0000fs-00 for ; Sun, 20 Oct 2002 22:52:44 +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 183M7W-0005Mg-00; Sun, 20 Oct 2002 15:52:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 183M76-00052K-00 for emacs-devel@gnu.org; Sun, 20 Oct 2002 15:51:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 183M73-0004w6-00 for emacs-devel@gnu.org; Sun, 20 Oct 2002 15:51:51 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 183M70-0004mN-00; Sun, 20 Oct 2002 15:51:46 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9KJpc312592; Sun, 20 Oct 2002 15:51:38 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Ehud Karni" 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:8598 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8598 > On Sun, 20 Oct 2002 12:59:39 -0400, Richard Stallman wrote: > > > > The debugging feature could make sense, but why isn't `make -k' a good > > default regardless of the kind of file? In other words, why isn't > > "You should write a proper makefile" a good solution for this? > > 1. There are many independent (small) programs which are > not part of a big project and so there is no need for make file. > 2. We use the compile command on many type of files which are not > real "programs" - shell scripts (run with arguments), sql queries, > reports (printed by the `compile') and many, many others. > 3. This makes it more easy to have a standard policy regarding saving > places for "compilation" output. For example we have some local > tool that work on *.pns files, our tool convert it to .pnl > our defined Note that compile-command can hold an expression rather than a string, so I think the best way to take care of some of those cases is with something like (add-hook 'pns-mode-hook (lambda () (set (make-local-variable 'compile-command) '(format "pnsrun %s" buffer-file-name)))) -- Stefan