From 647a3247fc50da6932c6d006ae576b37f34accff Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sun, 4 Feb 2007 11:16:54 +0000 Subject: [PATCH] (c-indent-line): Don't erase ^L when a line containing it is re-indented. --- lisp/progmodes/cc-cmds.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 96924899ea3..f8375d7fe36 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -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 -- 2.39.2