Commit 988e2aa6 authored by Richard M. Stallman's avatar Richard M. Stallman

(c-indent-region): As first thing, advance to a nonblank line.

parent f4a7e5bd
......@@ -1191,6 +1191,9 @@ If within a string or comment, move by sentences instead of statements."
(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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment