mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-20 03:47:34 +00:00
(c-indent-region): As first thing, advance to a nonblank line.
This commit is contained in:
parent
f4a7e5bd47
commit
988e2aa66b
1 changed files with 3 additions and 0 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue