[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: |
Stefan |
Subject: |
Re: tex-font-lock-suscript may mark buffer as modified |
Date: |
Mon, 06 Dec 2004 23:59:58 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) |
> This seems to fix it. Does it give good results overall?
That doesn't seem right.
I've installed the following patch instead.
Stefan
Index: lisp/font-lock.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/font-lock.el,v
retrieving revision 1.231
diff -u -r1.231 font-lock.el
--- lisp/font-lock.el 27 Nov 2004 00:17:22 -0000 1.231
+++ lisp/font-lock.el 7 Dec 2004 04:56:39 -0000
@@ -958,7 +958,8 @@
(funcall font-lock-fontify-region-function beg end loudly))
(defun font-lock-unfontify-region (beg end)
- (funcall font-lock-unfontify-region-function beg end))
+ (save-buffer-state nil
+ (funcall font-lock-unfontify-region-function beg end)))
(defun font-lock-default-fontify-buffer ()
(let ((verbose (if (numberp font-lock-verbose)
@@ -1046,13 +1046,12 @@
what properties to clear before refontifying a region.")
(defun font-lock-default-unfontify-region (beg end)
- (save-buffer-state nil
(remove-list-of-text-properties
beg end (append
font-lock-extra-managed-props
(if font-lock-syntactic-keywords
'(syntax-table face font-lock-multiline)
- '(face font-lock-multiline))))))
+ '(face font-lock-multiline)))))
;; Called when any modification is made to buffer text.
(defun font-lock-after-change-function (beg end old-len)