# HG changeset patch # User Martin Rudalics # Date 1177192739 0 # Node ID a0da91c5a123b27f97d1a734a7f867547813cf24 # Parent b2b01535f991392b981a57506c1a4e11b9fab965 (c-remove-any-local-eval-or-mode-variables): Use delete-region instead of kill-line. diff -r b2b01535f991 -r a0da91c5a123 lisp/progmodes/cc-mode.el --- a/lisp/progmodes/cc-mode.el Sat Apr 21 20:10:50 2007 +0000 +++ b/lisp/progmodes/cc-mode.el Sat Apr 21 21:58:59 2007 +0000 @@ -820,7 +820,7 @@ "$") nil t) (beginning-of-line) - (kill-line 1))) + (delete-region (point) (progn (end-of-line) (point))))) ;; Delete the first line, if we've got one, in case it contains a mode spec. (unless (and lv-point @@ -828,8 +828,7 @@ (forward-line 0) (bobp))) (goto-char (point-min)) - (unless (eobp) - (kill-line 1))))) + (delete-region (point) (progn (end-of-line) (point)))))) (defun c-postprocess-file-styles () "Function that post processes relevant file local variables in CC Mode.