[Ns-developers] emacs indentation innamespace

George Riley riley at ece.gatech.edu
Tue Mar 31 06:50:44 PDT 2009


FWIW, I get the same erroneous behavior that Gustavo reports.
GNU Emacs 22.1.1, on Mac OSX.
George
--------------------------------------------------
George Riley
Associate Professor
Georgia Tech
Electrical and Computer Engineering
riley at ece.gatech.edu
404-894-4767
Klaus Advanced Computing Building
Room 3360
266 Ferst Drive
Atlanta, Georgia 30332-0765

ECE4110 Web page:
http://users.ece.gatech.edu/~riley/ece4110/

ECE4112 Web page:
http://users.ece.gatech.edu/~riley/ece4112/









On Mar 31, 2009, at 9:41 AM, 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?
>
>
>>
>>
>>>
>>>
>>>
>>>        mainly because it would save all our emacs users from having
>>>        to change
>>>        their emacs configuration
>>>
>>> Yes, but at least it would save us from ever having to change the  
>>> mode
>>> line again.  We could adjust the style settings globally in the  
>>> future
>>> without touching the source files.
>>
>> Agreed. I could go with this too.
>>
>> Mathieu
>>>
>>
>>
>
>
> -- 
> 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