From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs scrolling past the end of buffer Date: Sun, 12 Feb 2012 23:11:28 +0200 Message-ID: <83ty2vycxr.fsf@gnu.org> References: <4F32E763.1060104@dogan.se> <877gzxufq3.fsf@gmail.com> <4F330620.7060201@dogan.se> <87wr7we2xp.fsf_-_@gmail.com> <4F37EAB4.7050809@dogan.se> <83zkcoxaob.fsf@gnu.org> <4F381889.1090502@dogan.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1329081126 25258 80.91.229.3 (12 Feb 2012 21:12:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2012 21:12:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 22:12:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwgiG-0004LB-2o for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2012 22:12:00 +0100 Original-Received: from localhost ([::1]:55083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwgiF-0000Lg-Ge for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2012 16:11:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:32793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwgiD-0000LZ-0a for emacs-devel@gnu.org; Sun, 12 Feb 2012 16:11:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwgiC-0007o2-85 for emacs-devel@gnu.org; Sun, 12 Feb 2012 16:11:56 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwgiC-0007ny-1f for emacs-devel@gnu.org; Sun, 12 Feb 2012 16:11:56 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LZA00000STA2B00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sun, 12 Feb 2012 23:11:27 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.150.51]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LZA00LBYTJ1FNR0@a-mtaout20.012.net.il>; Sun, 12 Feb 2012 23:11:26 +0200 (IST) In-reply-to: <4F381889.1090502@dogan.se> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148525 Archived-At: > Date: Sun, 12 Feb 2012 20:52:41 +0100 > From: Deniz Dogan > CC: emacs-devel@gnu.org > > > Please make sure that no code that runs off `window-scroll-functions' > > tries to affect the display. Functions run by that hook should treat > > the display as "read-only". > > Yeah, I noticed the warning in the manual and function docstring, but > there was no explanation as to why. Is this to avoid recursive > execution of the hooks? Mostly to uphold the assumptions which the code that runs `window-scroll-functions' relies on: that the visible portion of the window does not change across this call.