aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:03:40 -0300
committerFabián Ezequiel Gallina2012-05-17 00:03:40 -0300
commit1dae378f104041ce85135353038b749cf806c244 (patch)
tree7707d8a4d8e45c442dc1ed4cf3ed732c35782fa6 /lisp/progmodes/python.el
parentb4b661d885a9fd771f5b165142bc89c6c9f243bf (diff)
downloademacs-1dae378f104041ce85135353038b749cf806c244.tar.gz
emacs-1dae378f104041ce85135353038b749cf806c244.zip
Small fix in `python-shell-send-defun' (#69 thanks mafm-git!)
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 75b9f0c087e..4671d9f0f1a 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1635,10 +1635,12 @@ When argument ARG is non-nil sends the innermost defun."
1635 (python-shell-send-region 1635 (python-shell-send-region
1636 (progn 1636 (progn
1637 (or (python-beginning-of-defun-function) 1637 (or (python-beginning-of-defun-function)
1638 (progn (beginning-of-line) (point-marker)))) 1638 (beginning-of-line))
1639 (point-marker))
1639 (progn 1640 (progn
1640 (or (python-end-of-defun-function) 1641 (or (python-end-of-defun-function)
1641 (progn (end-of-line) (point-marker))))))) 1642 (end-of-line))
1643 (point-marker)))))
1642 1644
1643(defun python-shell-send-file (file-name &optional process temp-file-name) 1645(defun python-shell-send-file (file-name &optional process temp-file-name)
1644 "Send FILE-NAME to inferior Python PROCESS. 1646 "Send FILE-NAME to inferior Python PROCESS.