[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39598: 26.3; Emacs is extremely unresponsive on a trivial python fil
From: |
Lars Ingebrigtsen |
Subject: |
bug#39598: 26.3; Emacs is extremely unresponsive on a trivial python file |
Date: |
Sun, 20 Sep 2020 10:47:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Noam Postavsky <npostavs@gmail.com> writes:
> So any repetitions of the while loop after the second one are useless.
> The patch (generated with --ignore-all-space) below fixes it:
>
> --- c/lisp/progmodes/python.el
> +++ i/lisp/progmodes/python.el
> @@ -5135,7 +5135,8 @@ python-info-docstring-p
> (>=
> 2
> (let (last-backward-sexp-point)
> - (while (save-excursion
> + (while (and (<= counter 2)
> + (save-excursion
There wasn't any discussion of this patch, but it seems to fix the
problem and doesn't introduce any obvious regressions that I can see, so
I've applied it to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#39598: 26.3; Emacs is extremely unresponsive on a trivial python file,
Lars Ingebrigtsen <=