From a89d4ed8aea125f8cbd1dda26211a6ee67913242 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 21 Apr 2007 20:06:49 +0000 Subject: [PATCH] (perl-indent-command): Use delete-region instead of kill-region. --- lisp/progmodes/perl-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 255f63aed41..75920a43aa7 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -647,10 +647,10 @@ possible action from the following list: (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))) -- 2.39.2