[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mark for refontification
From: |
Lennart Borgman |
Subject: |
Re: Mark for refontification |
Date: |
Fri, 9 Apr 2010 08:42:32 +0200 |
On Fri, Apr 9, 2010 at 4:53 AM, Stefan Monnier <address@hidden> wrote:
>> Please also move the definition of the defmacro save-buffer-state
>> outside of eval-when-compile so that it could be used in other places
>> than font-lock.el.
>
> We have with-silent-modifications.
Thanks, I did not notice.
>> ;;;###autoload
>> (defun mumamo-mark-for-refontification (min max)
>> "Mark region between MIN and MAX for refontification."
>> (save-restriction
>> (widen)
>> ;;(mumamo-with-buffer-prepared-for-jit-lock
>> (mumamo-save-buffer-state nil
>> (put-text-property min max 'fontified nil)
>> )))
>
> Why widen?
You mean it is not necessary for put-text-property?