From xemacs-m  Wed Mar 12 02:41:55 1997
Received: from maes.esrin.esa.it ([192.106.252.50])
	by xemacs.org (8.8.5/8.8.5) with SMTP id CAA05150
	for <xemacs-beta@xemacs.org>; Wed, 12 Mar 1997 02:41:53 -0600 (CST)
Received: from mail.esrin.esa.it (plod.esrin.esa.it) by maes.esrin.esa.it with SMTP id AA25976
  (5.65c/IDA-1.4.4 for <xemacs-beta@xemacs.org>); Wed, 12 Mar 1997 09:42:00 +0100
Received: from penelope.esa.it by mail.esrin.esa.it (4.1/SMI-4.1)
	id AA04686; Wed, 12 Mar 97 08:42:06 GMT
Date: Wed, 12 Mar 97 08:42:06 GMT
Message-Id: <9703120842.AA04686@mail.esrin.esa.it>
Received: by penelope.esa.it (4.1/SMI-4.1)
	id AA28573; Wed, 12 Mar 97 09:46:41 +0100
From: Simon Marshall <Simon.Marshall@esrin.esa.it>
To: XEmacs Beta <xemacs-beta@xemacs.org>
In-Reply-To: <199703111638.JAA05801@branagh.ta52.lanl.gov>
	(turner@branagh.ta52.lanl.gov)
Subject: Re: lazy-lock (can't have everything, I guess)
Reply-To: Simon Marshall <Simon.Marshall@esrin.esa.it>

John> Although the sit-for or whatever it was problem is gone, something
John> else is back.  It's not *that* important, but when I visit a file
John> large enough to trigger lazy-lock, it isn't fontified until I do
John> something in the buffer (click the mouse, do C-n, whatever).  Some
John> of you may recall that this was happening quite a while ago (19.12?,
John> 19.13?, not sure).

John> Hang on... I just noticed that it only happens when I load the file
John> by button-2 in dired, not if I load by C-x C-f or 'f' in dired.

You have a good memory---there is a comment in lazy-lock.el about it:

;; 3.  In XEmacs 19.12, when the last command was invoked via a mouse event,
;; because of a bug/feature in/of `sit-for'.

Anyway, the same problem is back:

(defun fubar ()
  (message "sit-for = %s" (sit-for 0)))
(add-hook 'post-command-hook 'fubar)

Gives you nil when you mouse-2 in Dired.  Ta, Si.

