* lisp/progmodes/python.el
(python-info-dedenter-opening-block-positions):
Avoid potential infloop (bug#62031).
(catch 'exit
(while (python-nav--syntactically
(lambda ()
- (cl-loop for pt = (re-search-backward (python-rx block-start) nil t)
- until (memq (char-before) '(nil ?\s ?\t ?\n))
- finally return pt))
+ (cl-loop while (re-search-backward (python-rx block-start) nil t)
+ if (memq (char-before) '(nil ?\s ?\t ?\n))
+ return t))
#'<)
(let ((indentation (current-indentation)))
(when (and (not (memq indentation collected-indentations))