help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Bug? in CC-Mode


From: Alan Mackenzie
Subject: Re: Bug? in CC-Mode
Date: Tue, 7 Jun 2005 16:21:36 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Matthieu Lemerre <racin@free.fr> wrote on Tue, 07 Jun 2005 15:00:38 +0200:
> Hi,

> I used to have a (c-set-style "gnu") in my .emacs, which was useless
> but everything worked fine.

> When I tried emacs22 I had the following problem: c-set-style calls
> c-set-style-1, which calls c-setup-paragraph-variables, which sets
> globally paragraph-start, which is annoying for many reasons. Normally
> paragraph-start is local to the buffer, but the call to c-set-style
> change its value before it becomes buffer-local.

> Should this be considered as a bug?

Yes, definitely!

Normally, when you initialise a CC Mode buffer, the initialisation
process gets to call `c-basic-common-init', which contains the form
(make-local-variable 'paragraph-start).

So, at a guess, you're calling `c-set-style' in an unusual way, a way
that by-passes the normal initialisation sequence.  Would you please show
us exactly how and where you're calling `c-set-style', so that we can fix
the bug (or fix the documentation ;-).  

Thanks in advance!

> Matthieu

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").



reply via email to

[Prev in Thread] Current Thread [Next in Thread]