]> git.eshelyaron.com Git - emacs.git/commitdiff
(calculate-c-indent): When checking whether function decl
authorRichard M. Stallman <rms@gnu.org>
Thu, 29 Jul 1993 04:01:09 +0000 (04:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 29 Jul 1993 04:01:09 +0000 (04:01 +0000)
is inside a comment, move back to the `(' that starts the arglist.

lisp/progmodes/c-mode.el

index 9b20d6f72d99bf2a96dc835d34a2e7d0fdbafeb1..cdbf22463132b5882410897e6ee5342339619732 100644 (file)
@@ -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))