From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:25 +0000 (-0300) Subject: Fixed indentation case for after beginning of block X-Git-Tag: emacs-24.2.90~1199^2~539 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fad22dec878e8dc263a71348587c4ee182a4ea9b;p=emacs.git Fixed indentation case for after beginning of block --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index fbd6fdd4005..e6faf73547e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -584,6 +584,7 @@ START is the buffer position where the sexp starts." (while (and (forward-line -1) (python-info-continuation-line-p) (not (bobp)))) + (back-to-indentation) (when (not (looking-at block-regexp)) (forward-line 1))) (back-to-indentation) @@ -591,7 +592,9 @@ START is the buffer position where the sexp starts." (or (re-search-forward block-start-line-end (line-end-position) t) - (python-info-continuation-line-p))) + (save-excursion + (goto-char (line-end-position)) + (python-info-continuation-line-p)))) (point-marker))))) 'after-beginning-of-block) ;; After normal line