]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-indent-line): Don't erase ^L when a line containing it is re-indented.
authorAlan Mackenzie <acm@muc.de>
Sun, 4 Feb 2007 11:16:54 +0000 (11:16 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 4 Feb 2007 11:16:54 +0000 (11:16 +0000)
lisp/progmodes/cc-cmds.el

index 96924899ea3f69e297ea8e356d31438a1b5c0987..f8375d7fe369bef0ada6d3a74189b82cdaa0982b 100644 (file)
@@ -78,8 +78,10 @@ indentation change \(in columns)."
               (save-excursion
                 (beginning-of-line)
                 (looking-at (if line-cont-backslash
-                                "\\(\\s *\\)\\\\$"
-                              "\\(\\s *\\)$")))
+                                ;; Don't use "\\s " - ^L doesn't count as WS
+                                ;; here
+                                "\\([ \t]*\\)\\\\$"
+                              "\\([ \t]*\\)$")))
               (<= (point) (match-end 1)))
       ;; Delete all whitespace after point if there's only whitespace
       ;; on the line, so that any code that does back-to-indentation