]> code.delx.au - gnu-emacs-elpa/commitdiff
Also skip \r\xc when moving forward
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 20 Sep 2015 01:17:17 +0000 (02:17 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 20 Sep 2015 01:17:17 +0000 (02:17 +0100)
aggressive-indent.el

index 3c007db5d03cb2570b7a286e72b2ba2cb0bc7114..0622ccb382e9103f74f13d4293972da488348b9d 100644 (file)
@@ -321,7 +321,7 @@ until nothing more happens."
             (indent-according-to-mode))
           ;; And then we indent each following line until nothing happens.
           (forward-line 1)
-          (skip-chars-forward "[:blank:]\n")
+          (skip-chars-forward "[:blank:]\n\r\xc")
           (let* ((eod (ignore-errors
                         (save-excursion (end-of-defun)
                                         (point-marker))))
@@ -338,7 +338,7 @@ until nothing more happens."
                               ;; not at all, stop at the limit.
                               (< (point) point-limit))))
               (forward-line 1)
-              (skip-chars-forward "[:blank:]\n"))))
+              (skip-chars-forward "[:blank:]\n\r\xc"))))
       (goto-char p))))
 
 (defun aggressive-indent--softly-indent-region-and-on (l r &rest _)