]> code.delx.au - gnu-emacs-elpa/commitdiff
Skip empty lines when indenting blocks
authorPetr Machata <pmachata@redhat.com>
Sun, 26 Oct 2014 18:20:34 +0000 (19:20 +0100)
committerPetr Machata <pmachata@redhat.com>
Sun, 26 Oct 2014 18:20:34 +0000 (19:20 +0100)
aggressive-indent.el

index af6d2ac5268cc0fe9ebaf8a9c7c682cf8ca45286..e991adadfe876313e8218f4b32bdeed9038a2599 100644 (file)
@@ -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)))