# HG changeset patch # User Alan Mackenzie # Date 1170587814 0 # Node ID ca1b3744460a66719f4919df1f3d31e42e2f7b69 # Parent 6b239d3bbc07e764cc8d22745351c1ebe0ee7148 (c-indent-line): Don't erase ^L when a line containing it is re-indented. diff -r 6b239d3bbc07 -r ca1b3744460a lisp/progmodes/cc-cmds.el --- 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