Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Request small comment change to edit vdr code withemacs
Dominique Dumont wrote:
Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> writes:
Can't you just tell emacs to go into C++ mode?
The problem is that you have choosen a file suffix that usually
reserved for C file.
Well, at some point I have completely switched to C++ and didn't
want to have to get used to a new filename extension, that's why
I sticked to *.c.
I could set up emacs to handle *.c file as C++, but emacs would also
switch to C++ mode for regular c files.
If I start adding such comments for particular editors,
there will probably be quite I few I'd ahve to add.
You have a point.
The other solution is to change the suffix of your files, but this may
be a problem for your CVS (or whatever revision system you use).
By default emacs use C++ for the following suffix:
.cc .hh .hpp .C .H .cpp .cxx .hxx .c++ .h++
I want to be able to do things like
ls -ltr *.[hc]
so an extension with more than one character is ruled out.
Plus, I don't want to have to press the shift key, so uppercase
characters are ruled out, too.
I think that the suffix '.cc' and '.C' are most popular. I hope that
other people more experienced in C++ than me will confirm.
Anyway, it's your choice, I can certainly live with the perl one-liner
(but producing a patch is more painful...)
I'll stay with *.c ;-)
Klaus
Home |
Main Index |
Thread Index