GNU bug report logs -
#63844
30.0.50; [PATCH] Revert Python mode multiline font-lock
Previous Next
Reported by: kobarity <kobarity <at> gmail.com>
Date: Fri, 2 Jun 2023 14:23:02 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Fri, 02 Jun 2023 23:22:34 +0900
> From: kobarity <kobarity <at> gmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>
>
> I'm sorry, but I would like to revert my following fix:
>
> "Enhance Python font-lock to support multilines"
> commit 4915ca5dd4245a909c046e6691e8d4a1919890c8
>
> I have found that there are performance issues when editing a large
> file. The issue can be reproduced as follows:
>
> 1. emacs -Q
> 2. Open large Python file (e.g. turtle.py in Python)
> 3. Near the top of the buffer, enter open paren and some characters.
>
> The above commit extends the region to be font-locked using
> `python-nav-end-of-statement'. However, if there are unbalanced
> parens, it may move point to the end of the buffer. This causes
> almost the entire buffer to be font-locked, which is not acceptable
> for large files.
>
> Attached is a patch to revert the commit in emacs-29 branch.
Thanks, installed on the emacs-29 branch.
This bug report was last modified 1 year and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.