From 1dae378f104041ce85135353038b749cf806c244 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:40 -0300 Subject: [PATCH] Small fix in `python-shell-send-defun' (#69 thanks mafm-git!) --- lisp/progmodes/python.el | 6 ++++-- 1 file 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." (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. -- 2.39.2