diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:22 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:22 -0300 |
| commit | 257b0017ef0d33618554664b999a2a18850a39bd (patch) | |
| tree | 6c833ade8c049635697ef654ef55f7981a302d65 /lisp/progmodes/python.el | |
| parent | 856552879434f16abb7bd8a7af0be34c6589264b (diff) | |
| download | emacs-257b0017ef0d33618554664b999a2a18850a39bd.tar.gz emacs-257b0017ef0d33618554664b999a2a18850a39bd.zip | |
Fixed cornercase for normal lines when indentation was triggered in the middle of them
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index cdf8419f288..03524812a2d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -572,7 +572,7 @@ START is the buffer position where the sexp starts." | |||
| 572 | (let ((block-regexp (python-rx block-start)) | 572 | (let ((block-regexp (python-rx block-start)) |
| 573 | (block-start-line-end ":[[:space:]]*$")) | 573 | (block-start-line-end ":[[:space:]]*$")) |
| 574 | (back-to-indentation) | 574 | (back-to-indentation) |
| 575 | (while (and (forward-comment -9999) (not (bobp)))) | 575 | (forward-comment -9999) |
| 576 | (back-to-indentation) | 576 | (back-to-indentation) |
| 577 | (when (or (python-info-continuation-line-p) | 577 | (when (or (python-info-continuation-line-p) |
| 578 | (and (not (looking-at block-regexp)) | 578 | (and (not (looking-at block-regexp)) |
| @@ -595,7 +595,8 @@ START is the buffer position where the sexp starts." | |||
| 595 | 'after-beginning-of-block) | 595 | 'after-beginning-of-block) |
| 596 | ;; After normal line | 596 | ;; After normal line |
| 597 | ((setq start (save-excursion | 597 | ((setq start (save-excursion |
| 598 | (while (and (forward-comment -9999) (not (bobp)))) | 598 | (back-to-indentation) |
| 599 | (forward-comment -9999) | ||
| 599 | (python-nav-sentence-start) | 600 | (python-nav-sentence-start) |
| 600 | (point-marker))) | 601 | (point-marker))) |
| 601 | 'after-line) | 602 | 'after-line) |