]> code.delx.au - gnu-emacs/commitdiff
(calculate-c-indent): When testing for function-start line,
authorRichard M. Stallman <rms@gnu.org>
Wed, 23 Sep 1992 04:21:23 +0000 (04:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 23 Sep 1992 04:21:23 +0000 (04:21 +0000)
always match the first paren if have more than one.

lisp/progmodes/c-mode.el

index b92fe6ec819b138772744f40b09a760e43655753..4fa70262471cf19e41bc2a496910edb57f6641d1 100644 (file)
@@ -569,7 +569,10 @@ Returns nil if line starts inside a string, t if in a comment."
                                (looking-at "DEFUN\\b"))
                              c-argdecl-indent
                            (if (and (looking-at "\\sw\\|\\s_")
-                                    (looking-at "[^\"\n=]*(")
+                                    ;; This is careful to stop at the first
+                                    ;; paren if we have
+                                    ;; int foo Proto ((int, int));
+                                    (looking-at "[^\"\n=(]*(")
                                     (progn
                                       (goto-char (1- (match-end 0)))
                                       (setq lim (point))