diff options
| author | Richard M. Stallman | 1992-09-23 04:21:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-09-23 04:21:23 +0000 |
| commit | 791cc57dfa6c20fef571ef3467a06e309c3ec1be (patch) | |
| tree | 78dbc0116e4aa66d5898ce2274ed7558714fdb24 | |
| parent | 483a2e101d2f06e5d971c221879a15471108caa9 (diff) | |
| download | emacs-791cc57dfa6c20fef571ef3467a06e309c3ec1be.tar.gz emacs-791cc57dfa6c20fef571ef3467a06e309c3ec1be.zip | |
(calculate-c-indent): When testing for function-start line,
always match the first paren if have more than one.
| -rw-r--r-- | lisp/progmodes/c-mode.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." | |||
| 569 | (looking-at "DEFUN\\b")) | 569 | (looking-at "DEFUN\\b")) |
| 570 | c-argdecl-indent | 570 | c-argdecl-indent |
| 571 | (if (and (looking-at "\\sw\\|\\s_") | 571 | (if (and (looking-at "\\sw\\|\\s_") |
| 572 | (looking-at "[^\"\n=]*(") | 572 | ;; This is careful to stop at the first |
| 573 | ;; paren if we have | ||
| 574 | ;; int foo Proto ((int, int)); | ||
| 575 | (looking-at "[^\"\n=(]*(") | ||
| 573 | (progn | 576 | (progn |
| 574 | (goto-char (1- (match-end 0))) | 577 | (goto-char (1- (match-end 0))) |
| 575 | (setq lim (point)) | 578 | (setq lim (point)) |