diff lisp/progmodes/cc-cmds.el @ 79936:996fec9cb719

Introduce elements for the syntactic symbol arglist-cont-nonempty into c-hanging-braces-alist. Amend pertinent functions and 5 styles.
author Alan Mackenzie <acm@muc.de>
date Sat, 26 Jan 2008 22:26:18 +0000
parents a1342e6e097a
children 61acfe106dae
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el	Sat Jan 26 22:14:34 2008 +0000
+++ b/lisp/progmodes/cc-cmds.el	Sat Jan 26 22:26:18 2008 +0000
@@ -524,7 +524,11 @@
 	;; This is the list of brace syntactic symbols that can hang.
 	;; If any new ones are added to c-offsets-alist, they should be
 	;; added here as well.
-	'(class-open class-close defun-open defun-close
+	;; 
+	;; The order of this list is important; if SYNTAX has several
+	;; elements, the element that "wins" is the earliest in SYMS.
+	'(arglist-cont-nonempty		; e.g. an array literal.
+		     class-open class-close defun-open defun-close
 		     inline-open inline-close
 		     brace-list-open brace-list-close
 		     brace-list-intro brace-entry-open