[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mark for refontification
From: |
Stefan Monnier |
Subject: |
Re: Mark for refontification |
Date: |
Fri, 09 Apr 2010 20:57:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>>> (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?
No, my question doesn't have anything to do with put-text-property.
It's just that usually Elisp functions don't take buffer positions
outside of point-min...point-max and I see no reason why this one should
be an exception.
Stefan