Subject: Re: bug#21671: [PATCH] fix python.el hanging up during fontification #21657

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 23 Feb 2016 21:04:34 +1100

immerrr again <[email-masked]> writes:

> @@ -1712,7 +1712,11 @@ expressions when looking at them in either direction."
>                     (python-nav-beginning-of-block))
>                    ((memq context '(statement-start block-start))
>                     (goto-char next-sexp-pos)
> -                   (python-nav-beginning-of-statement))
> +                   (unless (bobp)
> +                     ;; If backward-sexp brought the point to
> +                     ;; beginning-of-buffer, beginning-of-statement
> +                     ;; will only bring it back.
> +                     (python-nav-beginning-of-statement)))
>                    (t (goto-char next-sexp-pos))))))))))

I'm not a Python mode user, so I can't really review this patch.  I've
reopened the bug -- could somebody else have a peek at this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no