[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-set-style not working in 21.1
From: |
Eli Zaretskii |
Subject: |
Re: c-set-style not working in 21.1 |
Date: |
Tue, 06 Nov 2001 09:42:34 +0200 |
> From: Mickey Ferguson <MFerguson@peinc.com>
> Date: Mon, 5 Nov 2001 16:34:28 -0800
>
> I am running emacs 21.1 on NT 4.0 and c-set-style doesn't work. I have
> (c-set-style "stroustrup") and when I execute it, it returns with an error
> message of "c-set-offset: Offset must be int, func, var, vector, list, or in
> [+,-,++,--,*,/]". It used to be fine back when I ran it on emacs 20.6.
>
> It looks like maybe I need to execute this only after a C or C++ file has
> been loaded. So maybe that means that I need to load some library before
> executing this statement. Any ideas here?
The CC Mode manual clearly says that you should call c-set-style in
your language mode hook (it also explains why). Doesn't that work?