# HG changeset patch # User Richard M. Stallman # Date 754053627 0 # Node ID d11c5909a2d07ede5177a5b3a8223865bcacb959 # Parent 500f269bf0a8dae5d102dc5e12cb4a746604621a (c-indent-region): As first thing, advance to a nonblank line. diff -r 500f269bf0a8 -r d11c5909a2d0 lisp/progmodes/c-mode.el --- a/lisp/progmodes/c-mode.el Tue Nov 23 11:06:13 1993 +0000 +++ b/lisp/progmodes/c-mode.el Tue Nov 23 11:20:27 1993 +0000 @@ -1191,6 +1191,9 @@ (defun c-indent-region (start end) (save-excursion (goto-char start) + ;; Advance to first nonblank line. + (skip-chars-forward " \t\n") + (beginning-of-line) (let ((endmark (copy-marker end)) (c-tab-always-indent t)) (while (and (bolp) (not (eolp)))