[Ns-developers] emacs indentation innamespace

Gustavo Carneiro gjcarneiro at gmail.com
Tue Mar 31 06:53:20 PDT 2009


2009/3/31 Mathieu Lacage <mathieu.lacage at sophia.inria.fr>

> 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


My version in Ubuntu 8.10 is GNU Emacs 22.2.1.  Ubuntu 9.04 still has that
same version.

The function c-add-style works at least as far as GNU Emacs 20.3 [1].

[1] At least it is documented in 20.3 manual I found at
http://www.phys.ufl.edu/docs/emacs/emacs_254.html


-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list