]> git.eshelyaron.com Git - emacs.git/commitdiff
Small fix in `python-shell-send-defun' (#69 thanks mafm-git!)
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:40 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:40 +0000 (00:03 -0300)
lisp/progmodes/python.el

index 75b9f0c087ea558fdf9d6b7373817700e7b75153..4671d9f0f1aa66a06a658e5f93fbf7f84c7a65a4 100644 (file)
@@ -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.