Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 6677:e45b83708d9e legacy-trunk
(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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Wed, 26 Nov 1997 20:30:33 +0000 |
| parents | 8e3ee3577d4e |
| children | de2f8f494ae3 |
line wrap: on
line diff
--- a/Misc/python-mode.el Wed Nov 26 17:37:31 1997 +0000 +++ b/Misc/python-mode.el Wed Nov 26 20:30:33 1997 +0000 @@ -461,8 +461,9 @@ ;; 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)
