aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorAlan Mackenzie2025-09-19 20:51:45 +0000
committerAlan Mackenzie2025-09-19 20:51:45 +0000
commitea01e59eb1eac133bec57d8fd260e470722fccf2 (patch)
tree1b505b56912a7e7006cdacd4dfcf9732686589a5 /doc/misc
parent2cc525467bcf3ec5c3ba437fc8291a236ee138bc (diff)
downloademacs-ea01e59eb1eac133bec57d8fd260e470722fccf2.tar.gz
emacs-ea01e59eb1eac133bec57d8fd260e470722fccf2.zip
CC Mode: Don't indent a construct in a class after a template
This fixes bug#79438. * lisp/progmodes/cc-align.el (c-lineup-class-field-cont): New function. * lisp/progmodes/cc-vars.el (c-offsets-alist): Change the entry for class-field-cont from + to c-lineup-class-field-cont. * doc/misc/cc-mode.texi (Misc Line-Up): Add a new entry for c-lineup-class-field-cont.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/cc-mode.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index c4fabf30235..fe93bc759b2 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -6992,6 +6992,18 @@ the_larch, @hereFn{c-lineup-topmost-intro-cont}
6992@workswith @code{topmost-intro-cont}. 6992@workswith @code{topmost-intro-cont}.
6993@end defun 6993@end defun
6994 6994
6995@comment ------------------------------------------------------------
6996
6997@defun c-lineup-class-field-cont
6998@findex lineup-class-field-cont (c-)
6999Indent continutation lines zero or one @code{c-basic-offset} steps.
7000This is intended for continuation lines within a class/struct
7001etc. construct. For a declaration following a template specification,
7002zero steps are used. Other constructs are indented one step.
7003
7004@workswith @code{class-field-cont}.
7005@end defun
7006
6995@comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 7007@comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6996@node Custom Line-Up 7008@node Custom Line-Up
6997@section Custom Line-Up Functions 7009@section Custom Line-Up Functions