diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:25 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:25 -0300 |
| commit | fad22dec878e8dc263a71348587c4ee182a4ea9b (patch) | |
| tree | e71610744fd26f9d235964eaba09a828b8276d74 /lisp | |
| parent | fbc39529f0c8d2ca06feb6d2082f9d1edfb7fe4b (diff) | |
| download | emacs-fad22dec878e8dc263a71348587c4ee182a4ea9b.tar.gz emacs-fad22dec878e8dc263a71348587c4ee182a4ea9b.zip | |
Fixed indentation case for after beginning of block
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." | |||
| 584 | (while (and (forward-line -1) | 584 | (while (and (forward-line -1) |
| 585 | (python-info-continuation-line-p) | 585 | (python-info-continuation-line-p) |
| 586 | (not (bobp)))) | 586 | (not (bobp)))) |
| 587 | (back-to-indentation) | ||
| 587 | (when (not (looking-at block-regexp)) | 588 | (when (not (looking-at block-regexp)) |
| 588 | (forward-line 1))) | 589 | (forward-line 1))) |
| 589 | (back-to-indentation) | 590 | (back-to-indentation) |
| @@ -591,7 +592,9 @@ START is the buffer position where the sexp starts." | |||
| 591 | (or (re-search-forward | 592 | (or (re-search-forward |
| 592 | block-start-line-end | 593 | block-start-line-end |
| 593 | (line-end-position) t) | 594 | (line-end-position) t) |
| 594 | (python-info-continuation-line-p))) | 595 | (save-excursion |
| 596 | (goto-char (line-end-position)) | ||
| 597 | (python-info-continuation-line-p)))) | ||
| 595 | (point-marker))))) | 598 | (point-marker))))) |
| 596 | 'after-beginning-of-block) | 599 | 'after-beginning-of-block) |
| 597 | ;; After normal line | 600 | ;; After normal line |