[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-default-fontify-region loops forever
From: |
Stefan Monnier |
Subject: |
Re: font-lock-default-fontify-region loops forever |
Date: |
Thu, 15 Feb 2007 11:38:07 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) |
> To trigger this bug `push' some other function to
^^^^
any
> `font-lock-extend-region-functions' (should be *before*
> `font-lock-extend-region-wholelines' in this list).
> Fix:
> Just test for `eobp' in `font-lock-extend-region-wholelines':
> (unless (or (bolp) (eobp))
> (setq changed t font-lock-end (line-beginning-position 2)))
> instead of just
> (unless (bolp) (setq changed t font-lock-end (line-beginning-position 2)))
Thanks. Should be fixed now,
Stefan