Files
emacs/doc/misc
Alan Mackenzie 36d9b8ce84 CC Mode: Add second anchor point to class-open and class-close
This fixes the second (last) part of bug#66911.  The new second
anchor points allow the indentation of braces in template
classes to be anchored on the keyword 'class' rather than the
`template' at the beginning of the statement.

* lisp/progmodes/cc-engine.el (c-add-class-syntax): Add &rest
args parameter for additional anchor points.  Pass these to
c-add-syntax.
(c-guess-continued-construct): CASE B.1: Note return value from
c-looking-at-decl-block and pass this to c-add-syntax for a
class-open construct.
(c-guess-basic-syntax): CASE 4: Duplicate anchor position for
class-open.
(c-guess-basic-syntax): CASE 5A.2: Note return value of
c-looking-at-decl-block and pass it as extra argument to
c-add-syntax for a class-open construct.
(c-guess-basic-syntax): CASE 5G: Call c-looking-at-decl-block
to determine the second anchor point for a class-close, and
pass it to c-add-class-syntax.

* doc/misc/cc-mode.texi (Class Symbols): Document the anchor
points for class-open and class-close.
2023-11-24 10:03:33 +00:00
..
2023-10-11 15:03:43 +00:00
2023-10-22 12:21:08 +03:00
2023-11-04 17:29:24 +02:00
2023-11-18 06:07:47 -05:00
2023-11-12 20:37:49 -08:00
2023-09-04 18:25:18 +02:00
2023-08-20 11:48:03 +03:00
2023-10-28 05:06:21 -04:00
2023-09-02 02:47:46 +02:00
2023-10-28 04:56:22 -04:00
2023-11-11 05:31:52 -05:00
2023-11-04 05:21:39 -04:00
2023-10-26 19:46:32 +08:00
2023-09-02 14:25:04 +03:00
2023-10-22 12:21:08 +03:00