Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 9827:ef97b4f6d187 legacy-trunk
(py-outdent-p): Short circuit infloop for illegal construct
(e.g. except: on first line of buffer).
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Sat, 09 Jan 1999 17:22:38 +0000 |
| parents | da1dd3e54b7a |
| children | 7bdef4bedd5c |
line wrap: on
line diff
--- a/Misc/python-mode.el Sat Jan 09 05:00:59 1999 +0000 +++ b/Misc/python-mode.el Sat Jan 09 17:22:38 1999 +0000 @@ -968,6 +968,8 @@ (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)
