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

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

Re: c-indent-level


From: Alan Mackenzie
Subject: Re: c-indent-level
Date: 21 Sep 2005 11:13:15 +0200
Date: Wed, 21 Sep 2005 07:14:25 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

In article <address@hidden> you wrote:
> C-mode does not seem to be indenting correctly.  c-indent-level is,
> according to C-h v, set to 4, and Emacs is indenting 8 (with tab key and
> indent-region).  The problem is with Emacs 21.4.  With the exact same
> init.el and file, Emacs 20.2 indents 4 as I expect.

Do you mean c-basic-offset?

This variable is usually buffer-local (i.e. has a (potentially) different
value in each buffer), and is also a "style variable" (i.e., can get
set/overwritten by the CC Mode style system).

Such variables can be tricky.  Can you describe how you set
c-basic-offset, and post anything else relevant from your .emacs.

> Bryan Henderson

-- 
Alan Mackenzie (Munich, Germany)
Email: address@hidden; 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]