]> granicus.if.org Git - python/commitdiff
(py-mode-map): Bind py-mark-def-or-class to C-M-h with a different
authorBarry Warsaw <barry@python.org>
Wed, 26 Nov 1997 20:30:33 +0000 (20:30 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 26 Nov 1997 20:30:33 +0000 (20:30 +0000)
spelling so that it doesn't clobber the standard M-BS binding.  This
should be portable between X/Emacsen.

Misc/python-mode.el

index ebecc3cd7a097a3830e67d9f666b7c505dcf8c08..688bb82068c3f4c4d7106c0494c2cbbbf81eb7d9 100644 (file)
@@ -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)