Mercurial > emacs
changeset 77375:93216aab76bf
(c-electric-slash): Replace wrong use of `kill-region' by
`delete-region'.
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Sat, 21 Apr 2007 20:05:53 +0000 |
parents | 74462e953a2c |
children | 8f81ea536fbd |
files | lisp/progmodes/cc-cmds.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el Sat Apr 21 20:04:06 2007 +0000 +++ b/lisp/progmodes/cc-cmds.el Sat Apr 21 20:05:53 2007 +0000 @@ -856,7 +856,7 @@ (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?