From xemacs-m  Thu Mar  6 09:42:09 1997
Received: from cbgw3.lucent.com (cbgw3.lucent.com [192.20.239.137])
	by xemacs.org (8.8.5/8.8.5) with SMTP id JAA20475
	for <xemacs-beta@xemacs.org>; Thu, 6 Mar 1997 09:42:09 -0600 (CST)
Received: from fragola.hr.lucent.com by cbig3.firewall.lucent.com (SMI-8.6/EMS-L sol2)
	id KAA19122; Thu, 6 Mar 1997 10:32:26 -0500
Received: from localhost (rsi@localhost)
	by fragola.hr.lucent.com (8.8.5/8.8.5) with SMTP id KAA00196
	for <xemacs-beta@xemacs.org>; Thu, 6 Mar 1997 10:42:29 -0500 (EST)
Message-Id: <199703061542.KAA00196@fragola.hr.lucent.com>
X-Authentication-Warning: fragola.hr.lucent.com: rsi@localhost didn't use HELO protocol
To: xemacs-beta@xemacs.org
From: Rajappa Iyer <rsi@lucent.com>
Reply-To: rsi@lucent.com
Subject: window-scroll-functions and lazy-lock
Date: Thu, 06 Mar 1997 10:42:28 -0500
Sender: rsi@fragola.hr.lucent.com

Not meaning to start a flamewar here, but I was curious about the
window-scroll-function controversy as presented in the commentary in
lazy-lock.el. Now, it seems to me that one of the main things that is
making XEmacs unusably slow on SunOS (yes even 19.15b* does not
alleviate the situation much) is lazy-lock and its interaction with
post-command-hook. I've used lazy-lock v2 with Emacs on the same
hardware and it is much, much faster. Before font-lock-mode kicks in,
both Emacs and XEmacs are roughly on par in terms of speed, although
Emacs is marginally faster, no doubt due to XEmacs' more powerful
display engine. In any case, I can only conclude that the startling
difference in speed with font-lock mode is on using lazy-lock can be
attributed to the presence or absence of window-scroll-functions.

So I looked at the code which implements the window-scroll-functions
on Emacs and to my (admittedly (X)Emacs-internals-inexperienced) eyes
it did not look too `horribly, horribly kludgy'. I guess I'm curious
why Ben Wing thought it was kludgy and why something like that cannot
be implemented on XEmacs.

Any thoughts on this matter?

Thanks,
Rajappa
--
Rajappa Iyer <rsi@lucent.com>		#include <std_disclaimer.h>
	They also surf who only stand on the waves.

