From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mode for preprocessed files Date: Thu, 24 Jul 2008 08:52:31 -0400 Message-ID: References: <200807240017.m6O0HHNL013737@sallyv1.ics.uci.edu> <200807240300.m6O30OgU007933@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216903986 5908 80.91.229.12 (24 Jul 2008 12:53:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 12:53:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 24 14:53:54 2008 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.50) id 1KM0KL-0005lO-SX for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 14:53:50 +0200 Original-Received: from localhost ([127.0.0.1]:59294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM0JS-0005fU-3L for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 08:52:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KM0JN-0005fN-73 for emacs-devel@gnu.org; Thu, 24 Jul 2008 08:52:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KM0JL-0005ds-7j for emacs-devel@gnu.org; Thu, 24 Jul 2008 08:52:48 -0400 Original-Received: from [199.232.76.173] (port=45089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM0JK-0005df-T4 for emacs-devel@gnu.org; Thu, 24 Jul 2008 08:52:47 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:52808 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KM0JK-0004c1-EF for emacs-devel@gnu.org; Thu, 24 Jul 2008 08:52:46 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAIUYiEhFxIYw/2dsb2JhbACBWrAERYE4 X-IronPort-AV: E=Sophos;i="4.31,246,1215403200"; d="scan'208";a="24753401" Original-Received: from 69-196-134-48.dsl.teksavvy.com (HELO pastel.home) ([69.196.134.48]) by ironport2-out.teksavvy.com with ESMTP; 24 Jul 2008 08:52:32 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A6AE182DB; Thu, 24 Jul 2008 08:52:31 -0400 (EDT) In-Reply-To: <200807240300.m6O30OgU007933@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 23 Jul 2008 20:00:23 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.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:101378 Archived-At: >> (it wouldn't have occurred >> to me that those extensions are actually used for C and C++ files). > They are the standard extensions that C/C++ compilers generate when you > tell them to save the preprocessed file. I know, but in all my years of C coding, I've never seen this "feature" used. I've seen things piped through cpp, but not saved to a .i(i) file. > Compilers accept files with > those extensions without wondering what the language is. Of course, they don't need to wonder if it might be something completely different since the mere fact of passing such a file to the compiler already tells the compiler that it's some kind of source file, so at worst the compiler has to decide which of the compiler's supported source languages is used. Emacs has to take into account whether such extensions are used in completely different contexts. Stefan PS: the .i and .ii extensions are not in Debian's /etc/mime.types, for example.