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



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.

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 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...)

Thanks




Home | Main Index | Thread Index