[Ns-developers] emacs indentation innamespace

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Tue Mar 31 06:43:16 PDT 2009


On Tue, 2009-03-31 at 14:41 +0100, Gustavo Carneiro wrote:
> 2009/3/31 Mathieu Lacage <mathieu.lacage at sophia.inria.fr>
>         On Tue, 2009-03-31 at 13:00 +0100, Gustavo Carneiro wrote:
>         
>         >         /* -*- Mode:C++; c-file-style:"gnu";
>         indent-tabs-mode:nil;
>         >         c-set-offset
>         >         'innamespace 0; -*- */
>         >
>         > +1 if it worked, but I get a "Malformed -*- line" emacs (22)
>         error.
>         
>         
>         worksforme: did you make sure it was on a _single_ line ?
>         (i.e., not
>         split)
> 
> Yes, I am sure.
> 
> Wrote /home/gjc/projects/ns/ns-3-wmrp/src/contrib/flow-monitor.h
> File local-variables error: (error "Malformed -*- line")
> 
> Plus I tried other combinations, trial and error, but could never
> reach a working solution.
> 
> What Emacs version do you use?

fedora 10 default:

[mlacage at diese ns-3-dev]$ emacs --version
GNU Emacs 22.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
[mlacage at diese ns-3-dev]$ 

If this is really version-dependent, it would be better to make an ns-3
emacs style.

Mathieu



More information about the Ns-developers mailing list