From xemacs-m  Fri Jan 31 01:21:53 1997
Received: from GS213.SP.CS.CMU.EDU (GS213.SP.CS.CMU.EDU [128.2.209.183])
	by xemacs.org (8.8.5/8.8.5) with SMTP id BAA02347
	for <xemacs-beta@xemacs.org>; Fri, 31 Jan 1997 01:21:53 -0600 (CST)
Received: by GS213.SP.CS.CMU.EDU (AIX 3.2/UCB 5.64/4.03)
          id AA41369; Fri, 31 Jan 1997 02:21:49 -0500
Date: Fri, 31 Jan 1997 02:21:49 -0500
Message-Id: <9701310721.AA41369@GS213.SP.CS.CMU.EDU>
From: Darrell Kindred <dkindred@cmu.edu>
To: xemacs-beta@xemacs.org
Subject: [PATCH] 19.15b90: font-lock bug
Organization: Carnegie Mellon University School of Computer Science

Hi folks,

I'm sorry I haven't been able to build any betas in a few
months.  I picked up and built 19.15b90 under linux today
and it looks just fine so far.

It does have one bug that's been annoying me since 19.14 at
least, so I finally tracked it down.  The code for turning
off font-lock mode removes font-lock-pre-idle-hook from the
pre-idle-hook.  This is no good, because pre-idle-hook is
global and other font-locked buffers will still need it.
This code gets run when you byte-compile a file, and that's
the case that most often bites me.  I've attached a patch;
I would guess that it's relevant to 19.20 also but I haven't
checked.

Good luck with the upcoming releases!

- Darrell

--- lisp/packages/font-lock.el.orig	Sat Dec 28 19:15:01 1996
+++ lisp/packages/font-lock.el	Fri Jan 31 02:13:55 1997
@@ -554,7 +554,10 @@
 	  (t
 	   (remove-hook 'after-change-functions
 			'font-lock-after-change-function t)
-	   (remove-hook 'pre-idle-hook 'font-lock-pre-idle-hook)
+	   ;; We have no business doing this here, since 
+	   ;; pre-idle-hook is global.	Other buffers may
+	   ;; still be in font-lock mode.  -dkindred@cs.cmu.edu
+	   ;; (remove-hook 'pre-idle-hook 'font-lock-pre-idle-hook)
 	   ))
     (set (make-local-variable 'font-lock-mode) on-p)
     (cond (on-p

