diff options
author | Alan Mackenzie <acm@muc.de> | 2017-02-12 10:59:03 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2017-02-12 10:59:03 +0000 |
commit | f4d5b687150810129b7a1d5b006e31ccf82b691b (patch) | |
tree | 4229b13800349032697daae3904dc3773e6b7a80 /doc/misc/cc-mode.texi | |
parent | d5514332d4a6092673ce1f78fadcae0c57f7be64 (diff) | |
parent | 148100d98319499f0ac6f57b8be08cbd14884a5c (diff) | |
download | emacs-comment-cache.tar.gz |
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'doc/misc/cc-mode.texi')
-rw-r--r-- | doc/misc/cc-mode.texi | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi index 68a16c0ed74..14981c9c58b 100644 --- a/doc/misc/cc-mode.texi +++ b/doc/misc/cc-mode.texi @@ -4141,7 +4141,8 @@ Open brace of an enum or static array list. @ref{Brace List Symbols}. @item brace-list-close Close brace of an enum or static array list. @ref{Brace List Symbols}. @item brace-list-intro -First line in an enum or static array list. @ref{Brace List Symbols}. +First line after the opening @samp{@{} in an enum or static array +list. @ref{Brace List Symbols}. @item brace-list-entry Subsequent lines in an enum or static array list. @ref{Brace List Symbols}. @@ -4635,11 +4636,18 @@ example: Here, you've already seen the analysis of lines 1, 2, 3, and 11. On line 4, things get interesting; this line is assigned -@code{brace-entry-open} syntactic symbol because it's a bracelist entry -line that starts with an open brace. Lines 5 and 6 (and line 9) are -pretty standard, and line 7 is a @code{brace-list-close} as you'd -expect. Once again, line 8 is assigned as @code{brace-entry-open} as is -line 10. +@code{brace-entry-open} syntactic symbol because it's a bracelist +entry line that starts with an open brace. Lines 5 and 6 are pretty +standard, and line 7 is a @code{brace-list-close} as you'd expect. +Once again, line 8 is assigned as @code{brace-entry-open} as is line +10. Line 9 is assigned two syntactic elements, @code{brace-list-intro} +with anchor point at the @samp{@{} of line 8@footnote{This extra +syntactic element was introduced in @ccmode{} 5.33.1 to allow extra +flexibility in indenting the second line of such a construct. You can +preserve the behaviour resulting from the former syntactic analysis by +giving @code{brace-list-entry} an offset of +@code{c-lineup-under-anchor} (@pxref{Misc Line-Up}).}, and +@code{brace-list-entry} anchored on the @samp{1} of line 8. @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @node External Scope Symbols, Paren List Symbols, Brace List Symbols, Syntactic Symbols @@ -6288,6 +6296,17 @@ already has; think of it as an identity function for lineups. @comment ------------------------------------------------------------ +@defun c-lineup-under-anchor + +Line up a line directly underneath its anchor point. This is like +@samp{0}, except any previously calculated offset contributions are +disregarded. + +@workswith Any syntactic symbol which has an anchor point. +@end defun + +@comment ------------------------------------------------------------ + @defun c-lineup-cpp-define @findex lineup-cpp-define (c-) Line up macro continuation lines according to the indentation of the |