changeset 1205:56d315ca10ee

(calculate-c-indent): When testing for function-start line, always match the first paren if have more than one.
author Richard M. Stallman <rms@gnu.org>
date Wed, 23 Sep 1992 04:21:23 +0000
parents 567860ca77e0
children de54d705652f
files lisp/progmodes/c-mode.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/c-mode.el	Wed Sep 23 03:51:58 1992 +0000
+++ b/lisp/progmodes/c-mode.el	Wed Sep 23 04:21:23 1992 +0000
@@ -569,7 +569,10 @@
 				(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))