]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(py-delete-char): must have 'supersede value for 'delete-selection and
authorBarry Warsaw <barry@python.org>
Thu, 9 Mar 1995 16:07:29 +0000 (16:07 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 9 Mar 1995 16:07:29 +0000 (16:07 +0000)
'pedning-delete properties.

Misc/python-mode.el

index a1ff2c7df11243b6b13ed415ba06ad7ec686c522..128641e1e72fa98c14cb0245943f6f88ffac201f 100644 (file)
@@ -590,6 +590,10 @@ needed so that only a single column position is deleted."
       (if base-found-p
          (message "Closes block: %s" base-text)))))
 
+;; required for pending-del and delsel modes
+(put 'py-delete-char 'delete-selection 'supersede)
+(put 'py-delete-char 'pending-delete   'supersede)
+
 (defun py-indent-line ()
   "Fix the indentation of the current line according to Python rules."
   (interactive)