aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Monnier2004-04-14 18:59:10 +0000
committerStefan Monnier2004-04-14 18:59:10 +0000
commit1e328a982ce5d4409e5aa6f0f13b132d9c5f10b8 (patch)
treebd0fb203f05e0757e2cd8740860c174541aae1e5 /lisp/progmodes/python.el
parentf4e432bbf3cd4cbf89142983e124bb2dff132595 (diff)
downloademacs-1e328a982ce5d4409e5aa6f0f13b132d9c5f10b8.tar.gz
emacs-1e328a982ce5d4409e5aa6f0f13b132d9c5f10b8.zip
(python-mouse-2-command, python-RET-command): Remove unused functions.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el27
1 files changed, 0 insertions, 27 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 36dc832347c..5ca1277a994 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1129,33 +1129,6 @@ def _emacs_args (name): # get arglist of name for eldoc &c
1129print '_emacs_ok'")) 1129print '_emacs_ok'"))
1130 (unless noshow (pop-to-buffer (setq python-buffer "*Python*")))) 1130 (unless noshow (pop-to-buffer (setq python-buffer "*Python*"))))
1131 1131
1132(defun python-mouse-2-command (event)
1133 "Command bound to `mouse-2' in inferior Python buffer.
1134Selects Comint or Compilation mode command as appropriate."
1135 (interactive "e")
1136 ;; This only works with the font-lock-based compilation mode.
1137 (call-interactively
1138 (lookup-key (if (save-window-excursion
1139 (save-excursion
1140 (mouse-set-point event)
1141 (consp (get-text-property (line-beginning-position)
1142 'message))))
1143 compilation-mode-map
1144 comint-mode-map)
1145 [mouse-2])))
1146
1147(defun python-RET-command ()
1148 "Command bound to `RET' in inferior Python buffer.
1149Selects Comint or Compilation mode command as appropriate."
1150 (interactive)
1151 ;; This only works with the font-lock-based compilation mode.
1152 (call-interactively
1153 (lookup-key (if (consp (get-text-property (line-beginning-position)
1154 'message))
1155 compilation-mode-map
1156 comint-mode-map)
1157 "\C-m")))
1158
1159(defun python-send-region (start end) 1132(defun python-send-region (start end)
1160 "Send the region to the inferior Python process." 1133 "Send the region to the inferior Python process."
1161 ;; The region is evaluated from a temporary file. This avoids 1134 ;; The region is evaluated from a temporary file. This avoids