GNU bug report logs - #56682
Fix the long lines font locking related slowdowns

Previous Next

Package: emacs;

Reported by: Gregory Heytings <gregory <at> heytings.org>

Date: Thu, 21 Jul 2022 18:01:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 56682 <at> debbugs.gnu.org, gregory <at> heytings.org, akrl <at> sdf.org
Subject: bug#56682: feature/improved-locked-narrowing 9dee6df39c: Reworked locked narrowing.
Date: Thu, 09 Feb 2023 19:43:59 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Gregory Heytings <gregory <at> heytings.org>,  akrl <at> sdf.org,
>   56682 <at> debbugs.gnu.org
> Date: Thu, 09 Feb 2023 12:31:44 -0500
> 
> >> A function/macro to check that could indeed be added, its body would be:
> >> 
> >> (save-restriction (widen) (buffer-narrowed-p))
> >
> > We should add it and document it, but I'm surprised that there's no
> > easier way.  One problem with the above is that it could cause a more
> > thorough redisplay because it fiddles with buffer restrictions.
> 
> Seeing how `buffer-narrowed-p` is not used very often, I'm not
> too worried.  Even more so given that the redisplay does try to notice
> when the restriction has been modified temporarily but "reset" to its
> original value since then.

The last part is only true for Lisp that's called from redisplay
itself, not for Lisp running between redisplay cycles.




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

Previous Next


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