[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flypell and check-comments.
From: |
Stefan Monnier |
Subject: |
Re: flypell and check-comments. |
Date: |
Wed, 07 Mar 2007 15:31:15 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) |
>> + ;; Fontify the part checked, so that font-lock based tests are
>> + ;; fine.
>> + (font-lock-fontify-region beg end)
> I'd use `jit-lock-fontify-now' here.
Actually it should be neither:
- font-lock-fontify-region will unnecessarily
refontify the region if it was already fontified.
- jit-lock-fontify-now is wrong if the user is not using jit-lock.
- if the user decided not to use font-lock...
There's a need for a new function `font-lock-ensure-fontified' which would
do nothing if font-lock doesn't use any helper thingy like lazy-lock or
font-lock and which would call jit-lock-fontify-now (or the equivalent for
lazy-lock) otherwise.
ps-print currently uses ps-print-ensure-fontified to work around the lack of
font-lock-ensure-fontified. And I'm pretty sure ps-print is not the only
such package.
Stefan
- flypell and check-comments., Michaël Cadilhac, 2007/03/07
- Re: flypell and check-comments., martin rudalics, 2007/03/07
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/07
- Re: flypell and check-comments.,
Stefan Monnier <=
- Re: flypell and check-comments., martin rudalics, 2007/03/07
- Re: flypell and check-comments., Richard Stallman, 2007/03/10
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/11
- Re: flypell and check-comments., martin rudalics, 2007/03/11
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/11
- Re: flypell and check-comments., martin rudalics, 2007/03/11
- Re: flypell and check-comments., Michaël Cadilhac, 2007/03/12
- Re: flypell and check-comments., martin rudalics, 2007/03/12
- Re: flypell and check-comments., Stefan Monnier, 2007/03/11
- Re: flypell and check-comments., Chong Yidong, 2007/03/24