unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* c-indent-level
@ 2005-09-16  4:23 Bryan Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan Henderson @ 2005-09-16  4:23 UTC (permalink / raw)


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.

-- 
Bryan Henderson                                    Phone 408-621-2000
San Jose, California

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c-indent-level
       [not found] <mailman.7241.1126845274.20277.bug-gnu-emacs@gnu.org>
@ 2005-09-21  9:13 ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2005-09-21  9:13 UTC (permalink / raw)


In article <mailman.7241.1126845274.20277.bug-gnu-emacs@gnu.org> 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: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-21  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-16  4:23 c-indent-level Bryan Henderson
     [not found] <mailman.7241.1126845274.20277.bug-gnu-emacs@gnu.org>
2005-09-21  9:13 ` c-indent-level Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).