From: Richard M. Stallman Date: Thu, 29 Jul 1993 04:01:09 +0000 (+0000) Subject: (calculate-c-indent): When checking whether function decl X-Git-Tag: emacs-19.34~11518 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=95d19fad86ca8a85417f7006267dd5518617e6b1;p=emacs.git (calculate-c-indent): When checking whether function decl is inside a comment, move back to the `(' that starts the arglist. --- 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))