summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1995-03-09 16:07:29 (GMT)
committerBarry Warsaw <barry@python.org>1995-03-09 16:07:29 (GMT)
commitfc8a01fc5a2890b24ca044f3d00a5139a13e40b2 (patch)
treeeaaca98c947e7baaefa486d2b1dc76f35d960e2a /Misc
parent1b761a6ef99e842997daef55a1379ba3751fa7e6 (diff)
downloadcpython-fc8a01fc5a2890b24ca044f3d00a5139a13e40b2.zip
cpython-fc8a01fc5a2890b24ca044f3d00a5139a13e40b2.tar.gz
cpython-fc8a01fc5a2890b24ca044f3d00a5139a13e40b2.tar.bz2
(py-delete-char): must have 'supersede value for 'delete-selection and
'pedning-delete properties.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index a1ff2c7..128641e 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -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)