branch: master commit c15c56d8123bfc6ae2c5de55d36ed0d875cbd5ac Author: Petr Machata <pmach...@redhat.com> Commit: Petr Machata <pmach...@redhat.com>
Skip empty lines when indenting blocks --- aggressive-indent.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/aggressive-indent.el b/aggressive-indent.el index af6d2ac..e991ada 100644 --- a/aggressive-indent.el +++ b/aggressive-indent.el @@ -263,7 +263,7 @@ until nothing more happens." (indent-according-to-mode)) ;; And then we indent each following line until nothing happens. (forward-line 1) - (while (/= (progn (skip-chars-forward "[:blank:]") + (while (/= (progn (skip-chars-forward "[:blank:]\n") (point)) (progn (indent-according-to-mode) (point)))