# HG changeset patch # User Stefan Monnier # Date 1081969150 0 # Node ID fb2f71e89f5f41eaaa2b957992e443736add51fa # Parent f23c0b924770ae58edf31e5f25d34c6b5d950e23 (python-mouse-2-command, python-RET-command): Remove unused functions. diff -r f23c0b924770 -r fb2f71e89f5f lisp/progmodes/python.el --- a/lisp/progmodes/python.el Wed Apr 14 18:58:45 2004 +0000 +++ b/lisp/progmodes/python.el Wed Apr 14 18:59:10 2004 +0000 @@ -1129,33 +1129,6 @@ print '_emacs_ok'")) (unless noshow (pop-to-buffer (setq python-buffer "*Python*")))) -(defun python-mouse-2-command (event) - "Command bound to `mouse-2' in inferior Python buffer. -Selects Comint or Compilation mode command as appropriate." - (interactive "e") - ;; This only works with the font-lock-based compilation mode. - (call-interactively - (lookup-key (if (save-window-excursion - (save-excursion - (mouse-set-point event) - (consp (get-text-property (line-beginning-position) - 'message)))) - compilation-mode-map - comint-mode-map) - [mouse-2]))) - -(defun python-RET-command () - "Command bound to `RET' in inferior Python buffer. -Selects Comint or Compilation mode command as appropriate." - (interactive) - ;; This only works with the font-lock-based compilation mode. - (call-interactively - (lookup-key (if (consp (get-text-property (line-beginning-position) - 'message)) - compilation-mode-map - comint-mode-map) - "\C-m"))) - (defun python-send-region (start end) "Send the region to the inferior Python process." ;; The region is evaluated from a temporary file. This avoids