mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(perl-indent-command): Use delete-region instead of kill-region.
This commit is contained in:
parent
041d3802a0
commit
a89d4ed8ae
1 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue