diff options
author | Barry Warsaw <barry@python.org> | 1999-01-09 17:22:38 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1999-01-09 17:22:38 (GMT) |
commit | 1a1c6bbf8c1bb81dfc6310523a1fc6d6f4847b01 (patch) | |
tree | 73f14c7727b17af04bade17c91e492e29c5ad410 /Misc/python-mode.el | |
parent | 83c74d44ce4e69fc0d1be1d7f6a0360116afa154 (diff) | |
download | cpython-1a1c6bbf8c1bb81dfc6310523a1fc6d6f4847b01.zip cpython-1a1c6bbf8c1bb81dfc6310523a1fc6d6f4847b01.tar.gz cpython-1a1c6bbf8c1bb81dfc6310523a1fc6d6f4847b01.tar.bz2 |
(py-outdent-p): Short circuit infloop for illegal construct
(e.g. except: on first line of buffer).
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r-- | Misc/python-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index ae570e5..48d1b61 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -968,6 +968,8 @@ py-beep-if-tab-change\t\tring the bell if `tab-width' is changed" (save-excursion (and (progn (back-to-indentation) (looking-at py-outdent-re)) + ;; short circuit infloop on illegal construct + (not (bobp)) (progn (forward-line -1) (py-goto-initial-line) (back-to-indentation) |