]> granicus.if.org Git - python/commitdiff
(py-execute-string): Bind to C-c C-s, and put on menu
authorBarry Warsaw <barry@python.org>
Tue, 19 May 1998 16:15:26 +0000 (16:15 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 19 May 1998 16:15:26 +0000 (16:15 +0000)
Misc/python-mode.el

index 39d1f1be10694d2fb1a2d4fdb9873c0dae4598f2..e4d3dd07ae6b5ab5ca24c5ab204d12b7fc18e4d4 100644 (file)
@@ -593,6 +593,7 @@ Currently-active file is at the head of the list.")
   ;; subprocess commands
   (define-key py-mode-map "\C-c\C-c"  'py-execute-buffer)
   (define-key py-mode-map "\C-c\C-m"  'py-execute-import-or-reload)
+  (define-key py-mode-map "\C-c\C-s"  'py-execute-string)
   (define-key py-mode-map "\C-c|"     'py-execute-region)
   (define-key py-mode-map "\e\C-x"    'py-execute-def-or-class)
   (define-key py-mode-map "\C-c!"     'py-shell)
@@ -729,6 +730,7 @@ package.  Note that the latest X/Emacs releases contain this package.")
        ["Execute buffer"       py-execute-buffer t]
        ["Execute region"       py-execute-region (mark)]
        ["Execute def or class" py-execute-def-or-class (mark)]
+       ["Execute string"       py-execute-string t]
        ["Start interpreter..." py-shell t]
        "-"
        ["Go to start of block" py-goto-block-up t]