[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tex-font-lock-suscript may mark buffer as modified
From: |
Richard Stallman |
Subject: |
Re: tex-font-lock-suscript may mark buffer as modified |
Date: |
Mon, 06 Dec 2004 23:24:06 -0500 |
This seems to fix it. Does it give good results overall?
*** font-lock.el 27 Nov 2004 14:02:46 -0500 1.231
--- font-lock.el 06 Dec 2004 15:13:33 -0500
***************
*** 958,964 ****
(funcall font-lock-fontify-region-function beg end loudly))
(defun font-lock-unfontify-region (beg end)
! (funcall font-lock-unfontify-region-function beg end))
(defun font-lock-default-fontify-buffer ()
(let ((verbose (if (numberp font-lock-verbose)
--- 958,970 ----
(funcall font-lock-fontify-region-function beg end loudly))
(defun font-lock-unfontify-region (beg end)
! (if (eq font-lock-unfontify-region-function
! 'font-lock-default-unfontify-region)
! (font-lock-default-unfontify-region beg end)
! ;; Some of these functions add or remove properties,
! ;; so protect the buffer from that.
! (save-buffer-state
! (funcall font-lock-unfontify-region-function beg end))))
(defun font-lock-default-fontify-buffer ()
(let ((verbose (if (numberp font-lock-verbose)