diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:02:55 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:02:55 -0300 |
| commit | df700cc99edbf1a51f78a52903cd6a9065121e22 (patch) | |
| tree | 0b8c048672dae7f9a03d6662e632ec79fe45e40f /lisp | |
| parent | b962ebad98b9dff00b2c945afe353a6820e40bce (diff) | |
| download | emacs-df700cc99edbf1a51f78a52903cd6a9065121e22.tar.gz emacs-df700cc99edbf1a51f78a52903cd6a9065121e22.zip | |
Fixed infinite while loop in python-info-current-defun
Was caused when a beginning of defun was in the beginning of buffer
because python-beginning-of-innermost-defun never reached the real
start when (bobp)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9f14bef5258..250f4812a33 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -786,7 +786,8 @@ innermost definition." | |||
| 786 | (forward-line -1) | 786 | (forward-line -1) |
| 787 | (not (bobp)) | 787 | (not (bobp)) |
| 788 | (not (back-to-indentation)))) | 788 | (not (back-to-indentation)))) |
| 789 | (forward-line 1) | 789 | (unless (bobp) |
| 790 | (forward-line 1)) | ||
| 790 | (point-marker)) | 791 | (point-marker)) |
| 791 | (if innermost | 792 | (if innermost |
| 792 | (python-beginning-of-defun) | 793 | (python-beginning-of-defun) |