Mercurial > emacs
changeset 5137:d11c5909a2d0
(c-indent-region): As first thing, advance to a nonblank line.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 23 Nov 1993 11:20:27 +0000 |
parents | 500f269bf0a8 |
children | 2ec2a9828090 |
files | lisp/progmodes/c-mode.el |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)))