From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: Emacs scrolling past the end of buffer Date: Sun, 12 Feb 2012 20:52:41 +0100 Message-ID: <4F381889.1090502@dogan.se> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329076379 26148 80.91.229.3 (12 Feb 2012 19:52:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2012 19:52:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 20:52:56 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 1RwfTk-0006SK-2t for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2012 20:52:56 +0100 Original-Received: from localhost ([::1]:58312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwfTj-0006Y2-OH for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2012 14:52:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwfTh-0006Xq-BR for emacs-devel@gnu.org; Sun, 12 Feb 2012 14:52:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwfTg-0005Lc-8c for emacs-devel@gnu.org; Sun, 12 Feb 2012 14:52:53 -0500 Original-Received: from ch-smtp04.sth.basefarm.net ([80.76.153.5]:50554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwfTe-0005LO-Cm; Sun, 12 Feb 2012 14:52:50 -0500 Original-Received: from c80-216-107-103.bredband.comhem.se ([80.216.107.103]:60038 helo=[192.168.0.10]) by ch-smtp04.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1RwfTa-00062g-DC; Sun, 12 Feb 2012 20:52:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 In-Reply-To: <83zkcoxaob.fsf@gnu.org> X-Originating-IP: 80.216.107.103 X-Scan-Result: No virus found in message 1RwfTa-00062g-DC. X-Scan-Signature: ch-smtp04.sth.basefarm.net 1RwfTa-00062g-DC b1a1cbf9f6b2dd1ec457a48f7f1dcc5b X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.76.153.5 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:148523 Archived-At: On 2012-02-12 17:45, Eli Zaretskii wrote: >> Date: Sun, 12 Feb 2012 17:37:08 +0100 >> From: Deniz Dogan >> >>> But then it sometimes happen that you see past the end of the buffer >>> when scrolling (the horror!). I'd rather have excessive CPU consumption. >>> >> >> What if we combine this with a function in `window-scroll-functions'? > > 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?