Matthieu Lemerre <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to