emacs-devel
[Top][All Lists]
Advanced

[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: Thu, 08 Apr 2010 22:53:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 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.

> ;;;###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?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]