changeset 77379:a0da91c5a123

(c-remove-any-local-eval-or-mode-variables): Use delete-region instead of kill-line.
author Martin Rudalics <rudalics@gmx.at>
date Sat, 21 Apr 2007 21:58:59 +0000
parents b2b01535f991
children 41633906d2e3
files lisp/progmodes/cc-mode.el
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.