Mercurial > emacs
changeset 77377:4d2d90c19454
(perl-indent-command): Use delete-region instead of kill-region.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 21 Apr 2007 20:06:49 +0000 |
parents | 8f81ea536fbd |
children | b2b01535f991 |
files | lisp/progmodes/perl-mode.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/perl-mode.el Sat Apr 21 20:06:41 2007 +0000 +++ b/lisp/progmodes/perl-mode.el Sat Apr 21 20:06:49 2007 +0000 @@ -647,10 +647,10 @@ (if (and comment-start-skip (re-search-forward comment-start-skip eol 'move)) (if (eolp) - (progn ; kill existing comment + (progn ; delete existing comment (goto-char (match-beginning 0)) (skip-chars-backward " \t") - (kill-region (point) eol)) + (delete-region (point) eol)) (if (or (< oldpnt (point)) (= oldpnt eol)) (indent-for-comment) ; indent existing comment (end-of-line)))