From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:40 +0000 (-0300) Subject: Small fix in `python-shell-send-defun' (#69 thanks mafm-git!) X-Git-Tag: emacs-24.2.90~1199^2~495 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1dae378f104041ce85135353038b749cf806c244;p=emacs.git Small fix in `python-shell-send-defun' (#69 thanks mafm-git!) --- 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." (python-shell-send-region (progn (or (python-beginning-of-defun-function) - (progn (beginning-of-line) (point-marker)))) + (beginning-of-line)) + (point-marker)) (progn (or (python-end-of-defun-function) - (progn (end-of-line) (point-marker))))))) + (end-of-line)) + (point-marker))))) (defun python-shell-send-file (file-name &optional process temp-file-name) "Send FILE-NAME to inferior Python PROCESS.