[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mode for preprocessed files
From: |
Dan Nicolaescu |
Subject: |
Re: mode for preprocessed files |
Date: |
Wed, 23 Jul 2008 20:00:23 -0700 |
Stefan Monnier <address@hidden> 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.