(c-remove-any-local-eval-or-mode-variables): Use delete-region
authorMartin Rudalics <rudalics@gmx.at>
Sat, 21 Apr 2007 22:00:45 +0000 (22:00 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 21 Apr 2007 22:00:45 +0000 (22:00 +0000)
instead of kill-line.

lisp/ChangeLog
lisp/progmodes/cc-mode.el

index 5c3f99b..15b8105 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-21  Martin Rudalics  <rudalics@gmx.at>
+
+       * progmodes/cc-mode.el
+       (c-remove-any-local-eval-or-mode-variables): Use delete-region
+       instead of kill-line.
+
 2007-04-21  Alan Mackenzie  <acm@muc.de>
 
        * progmodes/cc-cmds.el (c-electric-slash): Replace wrong use of
index f5da0ee..c3c17a6 100644 (file)
@@ -820,7 +820,7 @@ compatible with old code; callers should always specify it."
                      "$")
              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 @@ compatible with old code; callers should always specify it."
                        (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.