(calculate-c-indent): When testing for function-start line,

always match the first paren if have more than one.
This commit is contained in:
Richard M. Stallman
1992-09-23 04:21:23 +00:00
parent 483a2e101d
commit 791cc57dfa

View 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))