Re: Do you need mode lines etc. at the beginning of glibmm and gtkmm source files?



On Sun, 2014-07-13 at 18:55 +0200, Kjell Ahlstedt wrote:
Some source code files in glibmm and gtkmm start with seemingly
unnecessary lines, such as

   // -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
or
   // -*- c++ -*-
   /* $Id$ */
or
   // -*- c++ -*-
   /* $Id: event.ccg,v 1.2 2004/02/10 17:29:54 mxpxpod Exp $ */

gmmproc adds "// -*- c++ -*-" as the first line in generated .h files.

The line that begins "// -*- Mode:" occurs frequently in glibmm/gio.
It's said to be used by the emacs editor.

Do you need any of these initial lines? Should any of them be inserted
in newly written and/or modified files? Should they be deleted in
modified files?

I'd be happy to have them removed.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]