summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-11-26 20:30:33 +0000
committerBarry Warsaw <barry@python.org>1997-11-26 20:30:33 +0000
commit1a372272883aa5fe7b60f65cc83b50969bbc380e (patch)
treed5ada833ea2264402cb5842184d5aad0d0e3242a
parent7faf6c55cc861f5686e37c07ce68ada5c2a0a60f (diff)
downloadcpython-1a372272883aa5fe7b60f65cc83b50969bbc380e.tar.gz
(py-mode-map): Bind py-mark-def-or-class to C-M-h with a different
spelling so that it doesn't clobber the standard M-BS binding. This should be portable between X/Emacsen.
-rw-r--r--Misc/python-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index ebecc3cd7a..688bb82068 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -461,8 +461,9 @@ Currently-active file is at the head of the list.")
;; who cares? XEmacs 20 does the right thing with these too).
(define-key py-mode-map [delete] 'py-electric-delete)
(define-key py-mode-map [backspace] 'py-electric-backspace))
- ;; marking interesting locations
- (define-key py-mode-map "\e\C-h" 'py-mark-def-or-class)
+ ;; Separate M-BS from C-M-h. The former should remain
+ ;; backward-kill-word.
+ (define-key py-mode-map [(control meta h)] 'py-mark-def-or-class)
(define-key py-mode-map "\C-c\C-k" 'py-mark-block)
;; Miscellaneous
(define-key py-mode-map "\C-c:" 'py-guess-indent-offset)