GNU bug report logs -
#24633
highlight-region func using (window-hscroll) in :align-to spec can cause inf loop
Previous Next
Reported by: npostavs <at> users.sourceforge.net
Date: Fri, 7 Oct 2016 01:02:01 UTC
Severity: normal
Tags: fixed
Found in versions 24.5, 25.1
Fixed in version 26
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #39 received at 24633 <at> debbugs.gnu.org (full text, mbox):
tags 24633 fixed
close 24633 26
quit
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: npostavs <at> users.sourceforge.net
>> Cc: 24633 <at> debbugs.gnu.org
>> Date: Sat, 22 Oct 2016 15:27:42 -0400
>>
>> I tried adding a counter in redisplay_internal, it prevents having a
>> tight loop in C. Actually, the behaviour becomes like the split window
>> case: there is additional hscrolling each time the cursor blinks, but it
>> can be interrupted with C-g. That seems adequate behaviour to me, what
>> do you think?
>
> Did you see what happens when blink-cursor-mode is turned off? (If
> that's what you meant by "each time the cursor blinks; if not, what
> caused it to blink?)
If I turn blink-cursor-mode off, then it stops scrolling after what
seems like immediately (though I can see from the message calls that the
highlight-region function was called several times). So the counter is
limiting redisplay looping as expected.
>
> The patch looks OK to me, so if it gives better results than locking
> up Emacs with the current code, let's push it to master.
Okay, pushed as 241ae7a1 "Avoid infinite hscrolling in redisplay", and
closing the bug as fixed.
This bug report was last modified 8 years and 276 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.