GNU bug report logs - #57207
29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling)

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Sun, 14 Aug 2022 15:55:01 UTC

Severity: normal

Found in version 29.0.50

Done: Gregory Heytings <gregory <at> heytings.org>

Bug is archived. No further changes may be made.

Full log


Message #299 received at 57207 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Ihor Radchenko <yantar92 <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 57207 <at> debbugs.gnu.org
Subject: Re: bug#57207: 29.0.50; Fontification is slow after e7b5912b23
 (Improvements to long lines handling)
Date: Wed, 24 Aug 2022 08:26:51 +0000
[Message part 1 (text/plain, inline)]
>
> With the latest master, the fontification gets completely broken.
>
> IDK if it is related to this specific patch, but I got the following 
> redisplay backtrace.
>
> Note that org-element--parse-objects has the following:
> 
>   (save-excursion
>     (save-restriction
>       (narrow-to-region beg end)
>       (goto-char (point-min))
>       (let (next-object contents)
> (while (and (not (eobp))
>    (setq next-object (org-element--object-lex restriction)))
>
> The infinite recursion did not happen on the same Org file in the past. 
> So, it is not an issue with logic. Most likely, there is something about 
> narrowing/point movement that is very wrong on Emacs master.
>

I'm puzzled, you tried the patch and said it improved fontification?  Can 
you try to revert 1c837c42c2 and see if it works again?  Or can you 
provide (privately if necessary) an example file with which that error is 
triggered?

This bug report was last modified 2 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.