diff options
author | Alan Mackenzie <[email protected]> | 2007-02-04 11:16:54 +0000 |
---|---|---|
committer | Alan Mackenzie <[email protected]> | 2007-02-04 11:16:54 +0000 |
commit | 647a3247fc50da6932c6d006ae576b37f34accff (patch) | |
tree | eec0d5bd7b83631985487ff9c909a6fcdf1cfe38 /lisp/progmodes/cc-cmds.el | |
parent | 0ac6528f44958bb65622ccae016060df07504eb2 (diff) |
(c-indent-line): Don't erase ^L when a line containing it is re-indented.
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 96924899ea..f8375d7fe3 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 |