From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: mode for preprocessed files Date: Wed, 23 Jul 2008 20:00:23 -0700 Message-ID: <200807240300.m6O30OgU007933@sallyv1.ics.uci.edu> References: <200807240017.m6O0HHNL013737@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 1216868589 5044 80.91.229.12 (24 Jul 2008 03:03:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 03:03:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 24 05:03:58 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 1KLr7V-0003a9-Bf for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 05:03:57 +0200 Original-Received: from localhost ([127.0.0.1]:46628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLr6b-00086a-Uz for ged-emacs-devel@m.gmane.org; Wed, 23 Jul 2008 23:03:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLr6X-00086S-11 for emacs-devel@gnu.org; Wed, 23 Jul 2008 23:02:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLr6U-00086G-Mz for emacs-devel@gnu.org; Wed, 23 Jul 2008 23:02:55 -0400 Original-Received: from [199.232.76.173] (port=40234 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLr6U-00086D-FH for emacs-devel@gnu.org; Wed, 23 Jul 2008 23:02:54 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:33892) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KLr6U-0005eY-3B for emacs-devel@gnu.org; Wed, 23 Jul 2008 23:02:54 -0400 X-ICS-MailScanner-Watermark: 1217473225.20146@DreMAq7gE0oVRtUxc9rzIw Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m6O30OgU007933; Wed, 23 Jul 2008 20:00:24 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 23 Jul 2008 22:24:15 -0400") Original-Lines: 21 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:101363 Archived-At: Stefan Monnier writes: > > Currently C and C++ preprocessed files (.i and .ii, respectively) are > > opened in fundamental mode. > > > Would anyone object if we would use c-mode and c++-mode for them by default? > > I've been doing this locally for a long time without any problem. > > It might be OK, tho I wonder how often that's useful. > I.e. it's OK but put it way down the list, with a comment explaining why > .i and .ii are mapped to c-mode and c++-mode Done. But the list is created using autoloads... BTW, wasn't there a plan to avoid doing that? > (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. Compilers accept files with those extensions without wondering what the language is.