changeset 75666:ca1b3744460a

(c-indent-line): Don't erase ^L when a line containing it is re-indented.
author Alan Mackenzie <acm@muc.de>
date Sun, 04 Feb 2007 11:16:54 +0000
parents 6b239d3bbc07
children a3fbf0410f07
files lisp/progmodes/cc-cmds.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el	Sun Feb 04 11:12:49 2007 +0000
+++ b/lisp/progmodes/cc-cmds.el	Sun Feb 04 11:16:54 2007 +0000
@@ -78,8 +78,10 @@
 	       (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