From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:12 +0000 (-0300) Subject: Replaced references from python-beginning-of-innermost-defun to python-beginning... X-Git-Tag: emacs-24.2.90~1199^2~575 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2ed294c5df967cf4700539f8e2842873813051cc;p=emacs.git Replaced references from python-beginning-of-innermost-defun to python-beginning-of-defun-function --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index be5221cee28..6295dad559e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1251,18 +1251,17 @@ the output." (python-shell-send-region (point-min) (point-max)))) (defun python-shell-send-defun (arg) - "Send the (inner|outer)most def or class to inferior Python process. + "Send the current defun to inferior Python process. When argument ARG is non-nil sends the innermost defun." (interactive "P") (save-excursion - (python-shell-send-region (progn - (or (if arg - (python-beginning-of-innermost-defun) - (python-beginning-of-defun-function)) - (progn (beginning-of-line) (point-marker)))) - (progn - (or (python-end-of-defun-function) - (progn (end-of-line) (point-marker))))))) + (python-shell-send-region + (progn + (or (python-beginning-of-defun-function) + (progn (beginning-of-line) (point-marker)))) + (progn + (or (python-end-of-defun-function) + (progn (end-of-line) (point-marker))))))) (defun python-shell-send-file (file-name &optional process temp-file-name) "Send FILE-NAME to inferior Python PROCESS. @@ -1943,7 +1942,7 @@ not inside a defun." (when (not (>= (current-indentation) python-indent-offset)) (while (and (not (eobp)) (forward-comment 1)))) (while (and (not (equal 0 (current-indentation))) - (python-beginning-of-innermost-defun)) + (python-beginning-of-defun-function)) (back-to-indentation) (looking-at "\\(?:def\\|class\\) +\\([^(]+\\)[^:]+:\\s-*\n") (setq names (cons (match-string-no-properties 1) names)))))