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



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?



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