From xemacs-m  Wed Sep 17 21:50:34 1997
Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA17636
	for <xemacs-beta@xemacs.org>; Wed, 17 Sep 1997 21:49:06 -0500 (CDT)
Received: from orion.kurims.kyoto-u.ac.jp (orion.kurims.kyoto-u.ac.jp [130.54.16.5]) by kurims.kurims.kyoto-u.ac.jp (8.8.5/3.4W2) with SMTP id LAA14669; Thu, 18 Sep 1997 11:49:00 +0900 (JST)
Received: (from petersen@localhost) by orion.kurims.kyoto-u.ac.jp (SMI-8.6/3.5Wbeta) id LAA07444; Thu, 18 Sep 1997 11:49:00 +0900
To: Remek Trzaska <remek@postoffice.npac.syr.edu>
Cc: XEmacs Beta List <xemacs-beta@xemacs.org>
Subject: [patch] lazy-lock.el (was: Re: C-g pressed while typing in minibuffer)
References: <rwxd8m7el11.fsf@greatwall.npac.syr.edu>
X-Face: fOOYdM>Ct-+jZ!MfKWRl?5e=(j4]xHE~<%D)$=FuN"@nP]"fi8stnK9>1fW>1HR[fj\=i%q0'l2G]0[H'R*m(fm^Og;iG>lBmr{anp!LG[)PD}g^XbG.(@oIi8;y)8+C"HV5}8NQ`HR7~P{+$AEEPo,N>,IwIbd:Dq6\"Bi#Aq\^lJ~dmwnUkc-Xb{k3\dZnF7j,$enH=Ybr<9v,Kzi-T|urefU:c{$pC)T5yvnRO0T+D&Z9{B8ulAd5X#c?Z|}vv^qhBjEj
X-Emacs: 20.3 "Tirana" XEmacs  Lucid (beta20) with mule
Mime-Version: 1.0 (generated by SEMI MIME-Edit 0.86 "Naka-Tsurugi")
Content-Type: text/plain; charset=US-ASCII
From: Jens-Ulrik Holger Petersen <petersen@kurims.kyoto-u.ac.jp>
Date: 18 Sep 1997 11:48:59 +0900
In-Reply-To: Remek Trzaska's message of "17 Sep 1997 16:35:22 -0400"
Message-ID: <lb202n9w10.fsf@orion.kurims.kyoto-u.ac.jp>
Lines: 34
X-Mailer: Gnus v5.4.65 + SEMI patch (r2.1)/XEmacs 20.3(beta20) - "Tirana"

Here is a patch to "lazy-lock.el" which seems to fix the above
problem.


1997-09-18  Jens-Ulrik Holger Petersen  <petersen@kurims.kyoto-u.ac.jp>

	* packages/lazy-lock.el (lazy-lock-pre-idle-fontify-windows):
	Don't do lazy-lock'ing if we're in the minibuffer.

diff -u /home/petersen/src/xemacs/solaris/lisp/packages/lazy-lock.el.orig /home/petersen/src/xemacs/solaris/lisp/packages/lazy-lock.el
--- /home/petersen/src/xemacs/solaris/lisp/packages/lazy-lock.el.orig	Thu Sep 18 11:43:48 1997
+++ /home/petersen/src/xemacs/solaris/lisp/packages/lazy-lock.el	Thu Sep 18 11:43:49 1997
@@ -661,13 +661,13 @@
   ;; (e) no input after waiting for `lazy-lock-continuity-time'.
   ;;
   ;; (a), (b), and (e) are automatically taken care of by `pre-idle-hook'.
-  ;; I removed (d) because there doesn't seem to be any reason for it.
   ;;
   ;; Also, we do not have to `set-buffer' and in fact it would be
   ;; incorrect to do so, since we may be being called from
   ;; `accept-process-output' or whatever.
   ;;
-  (if (memq this-command lazy-lock-ignore-commands)
+  (if (or (memq this-command lazy-lock-ignore-commands)
+	  (window-minibuffer-p (selected-window)))
       (setq lazy-lock-cache-continue nil)
     (setq lazy-lock-cache-continue t)
     ;; #### we don't yet handle frame-modified-tick on multiple frames.

-- 
Jens
---
THE GOLDEN RULE OF ARTS AND SCIENCES
	The one who has the gold makes the rules.

