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: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 56682 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, akrl <at> sdf.org
Subject: bug#56682: feature/improved-locked-narrowing 9dee6df39c: Reworked locked narrowing.
Date: Wed, 15 Feb 2023 13:37:46 +0000
>
> Hmm... I'm probably missing something, but doesn't 
> narrowing_locks_remove permanently removes the lock from the restriction 
> in the buffer?  And if so, don't we want to restore the lock after 
> whatever we need to do in a widened buffer is done?
>

Yes: that's what the "record_unwind_protect (save_restriction_restore, 
save_restriction_save ());" does.  The two places where 
'narrowing_locks_remove_in_current_buffer' is not preceded by that 
statement are the two places where we indeed don't want to restore the 
restrictions after widening: Ferase_buffer and Fcall_process_region.





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

Previous Next


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