From 0abe900ba11ac9e8ef002c2158411edf7c9a9350 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 21 Apr 2007 20:05:53 +0000 Subject: [PATCH] (c-electric-slash): Replace wrong use of `kill-region' by `delete-region'. --- lisp/progmodes/cc-cmds.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 9ef4aaace72..27796e05022 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -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? -- 2.39.2