aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc/cc-mode.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/misc/cc-mode.texi')
-rw-r--r--doc/misc/cc-mode.texi28
1 files changed, 26 insertions, 2 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index 1a77a64e01c..0c77cc0ee61 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -148,7 +148,17 @@ CC Mode
148@comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 148@comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
149 149
150@comment Define an index for syntactic symbols. 150@comment Define an index for syntactic symbols.
151@c Version for Texinfo <= 4.x
152@ifclear txicommandconditionals
153@ifnottex @c In texi2dvi, the @defindex would create an empty cc-mode.ss
154 @c For Info, unlike tex, @syncodeindex needs a matching @defindex.
151@defindex ss 155@defindex ss
156@end ifnottex
157@end ifclear
158@c Version for Texinfo >= 5.x
159@ifset txicommandconditionals
160@defindex ss
161@end ifset
152 162
153@comment Combine key, syntactic symbol and concept indices into one. 163@comment Combine key, syntactic symbol and concept indices into one.
154@syncodeindex ss cp 164@syncodeindex ss cp
@@ -2282,6 +2292,8 @@ method, ``Top-level commands or the customization interface''.
2282 2292
2283If you make conflicting settings in several of these ways, the way 2293If you make conflicting settings in several of these ways, the way
2284that takes precedence is the one that appears latest in this list: 2294that takes precedence is the one that appears latest in this list:
2295@c Version of list for Texinfo <= 4.x
2296@ifclear txicommandconditionals
2285@itemize @w{} 2297@itemize @w{}
2286@item 2298@item
2287@table @asis 2299@table @asis
@@ -2292,6 +2304,18 @@ that takes precedence is the one that appears latest in this list:
2292@itemx File Local Variable setting 2304@itemx File Local Variable setting
2293@end table 2305@end table
2294@end itemize 2306@end itemize
2307@end ifclear
2308@c Version of list for Texinfo >= 5.x
2309@ifset txicommandconditionals
2310@itemize @asis
2311@item Style
2312@item File Style@footnote{In earlier versions of @ccmode{}, a File Style setting took precedence over any other setting apart from a File Local Variable setting.}
2313@item Top-level command or ``customization interface''
2314@item Hook
2315@item File Local Variable setting
2316@end itemize
2317@end ifset
2318
2295 2319
2296Here is a summary of the different ways of writing your configuration 2320Here is a summary of the different ways of writing your configuration
2297settings: 2321settings:
@@ -2548,7 +2572,7 @@ Basics}).
2548@item 2572@item
2549The style variable @code{c-offsets-alist} (@pxref{c-offsets-alist}) is 2573The style variable @code{c-offsets-alist} (@pxref{c-offsets-alist}) is
2550an association list with an element for each syntactic symbol. It's 2574an association list with an element for each syntactic symbol. It's
2551handled a little differently from the other style variables. It's 2575handled a little differently from the other style variables. Its
2552default global binding is the empty list @code{nil}, rather than 2576default global binding is the empty list @code{nil}, rather than
2553@code{set-from-style}. Before the style system is initialized, you 2577@code{set-from-style}. Before the style system is initialized, you
2554can add individual elements to @code{c-offsets-alist} by calling 2578can add individual elements to @code{c-offsets-alist} by calling
@@ -5286,7 +5310,7 @@ The simplest and most used kind of ``offset'' setting in
5286@defopt c-basic-offset 5310@defopt c-basic-offset
5287@vindex basic-offset @r{(c-)} 5311@vindex basic-offset @r{(c-)}
5288This style variable holds the basic offset between indentation levels. 5312This style variable holds the basic offset between indentation levels.
5289It's factory default is 4, but all the built-in styles set it 5313Its factory default is 4, but all the built-in styles set it
5290themselves, to some value between 2 (for @code{gnu} style) and 8 (for 5314themselves, to some value between 2 (for @code{gnu} style) and 8 (for
5291@code{bsd}, @code{linux}, and @code{python} styles). 5315@code{bsd}, @code{linux}, and @code{python} styles).
5292@end defopt 5316@end defopt