From 95d19fad86ca8a85417f7006267dd5518617e6b1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 29 Jul 1993 04:01:09 +0000 Subject: [PATCH] (calculate-c-indent): When checking whether function decl is inside a comment, move back to the `(' that starts the arglist. --- lisp/progmodes/c-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 9b20d6f72d9..cdbf2246313 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el @@ -642,6 +642,8 @@ Returns nil if line starts inside a string, t if in a comment." ;; Make sure the "function decl" we found ;; is not inside a comment. (progn + ;; Move back to the `(' starting arglist + (goto-char lim) (beginning-of-line) (while (and (not comment) (search-forward "/*" lim t)) -- 2.11.4.GIT