]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-electric-slash): Replace wrong use of `kill-region' by
authorAlan Mackenzie <acm@muc.de>
Sat, 21 Apr 2007 20:05:53 +0000 (20:05 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 21 Apr 2007 20:05:53 +0000 (20:05 +0000)
`delete-region'.

lisp/progmodes/cc-cmds.el

index 9ef4aaace72f71acb8b046a50c20a5544c2e23ce..27796e050223f09d564ed9f5f400ecead2f607b2 100644 (file)
@@ -856,7 +856,7 @@ is inhibited."
                   (narrow-to-region (point-min) (point))
                   (back-to-indentation)
                   (looking-at (concat c-current-comment-prefix "[ \t]*$")))))
-      (kill-region (progn (forward-line 0) (point))
+      (delete-region (progn (forward-line 0) (point))
                   (progn (end-of-line) (point)))
       (insert-char ?* 1)) ; the / comes later. ; Do I need a t (retain sticky properties) here?