[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fontification loop
From: |
Andreas Seltenreich |
Subject: |
Re: fontification loop |
Date: |
Sun, 24 Sep 2006 19:04:53 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Andreas Seltenreich <address@hidden> writes:
> martin rudalics <address@hidden> writes:
>
>>> I just caught Emacs hogging the CPU with endless
>>> redisplay/fontification. The following code triggers it for me:
>>>
> [...]
>> I tried this with emacs -Q and it left point at the end of line 178
>> displaying baz with the "z" invisible. No redisplay or fontification
>> problems seen, but my build is older than yours.
>
> I just tried it with older builds I had lying around: It also happens
> with a build from 2006-08-23, but not with one from 2006-07-06.
Update: The problem goes away when I revert the following change.
--8<---------------cut here---------------start------------->8---
2006-08-01 Stefan Monnier <address@hidden>
* font-core.el (font-lock-extend-region-function)
(font-lock-extend-region): Move to font-lock.el.
* font-lock.el (font-lock-extend-region-function)
(font-lock-extend-region): Move from font-core.el. Simplify.
* jit-lock.el (jit-lock-fontify-now): Cause a second redisplay
if needed.
(jit-lock-start, jit-lock-end): New dynamic scoped vars.
(jit-lock-after-change-extend-region-functions): New hook.
(jit-lock-after-change): Use it instead of hard-coding font-lock code.
* font-lock.el (font-lock-extend-jit-lock-region-after-change): New fun.
(font-lock-turn-on-thing-lock): Use it.
* longlines.el (longlines-show-region): Make it work on read-only
buffers as well.
--8<---------------cut here---------------end--------------->8---
- fontification loop, Andreas Seltenreich, 2006/09/24
- Re: fontification loop, martin rudalics, 2006/09/24
- Re: fontification loop, Andreas Seltenreich, 2006/09/24
- Re: fontification loop,
Andreas Seltenreich <=
- Re: fontification loop, Richard Stallman, 2006/09/24
- Re: fontification loop, Andreas Seltenreich, 2006/09/25
- Re: fontification loop, martin rudalics, 2006/09/25
- Re: fontification loop, Andreas Seltenreich, 2006/09/25
- Re: fontification loop, T. V. Raman, 2006/09/27
- Re: fontification loop, Stefan Monnier, 2006/09/25
Re: fontification loop, Stefan Monnier, 2006/09/25