From 791cc57dfa6c20fef571ef3467a06e309c3ec1be Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 23 Sep 1992 04:21:23 +0000 Subject: [PATCH] (calculate-c-indent): When testing for function-start line, always match the first paren if have more than one. --- lisp/progmodes/c-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index b92fe6ec819..4fa70262471 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -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))