Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc8a01f

Browse files
committed
(py-delete-char): must have 'supersede value for 'delete-selection and
'pedning-delete properties.
1 parent 1b761a6 commit fc8a01f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Misc/python-mode.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ needed so that only a single column position is deleted."
590590
(if base-found-p
591591
(message "Closes block: %s" base-text)))))
592592

593+
;; required for pending-del and delsel modes
594+
(put 'py-delete-char 'delete-selection 'supersede)
595+
(put 'py-delete-char 'pending-delete 'supersede)
596+
593597
(defun py-indent-line ()
594598
"Fix the indentation of the current line according to Python rules."
595599
(interactive)

0 commit comments

Comments
 (0)