From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Annoying recentering when scrolling down Date: Fri, 22 Aug 2008 17:32:02 -0400 Message-ID: <87ej4gvir1.fsf@cyd.mit.edu> References: <87skszunyx.fsf@cyd.mit.edu> <87ljyonasy.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219440817 19229 80.91.229.12 (22 Aug 2008 21:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 21:33:37 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 22 23:34:29 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWeH5-0005xr-1s for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 23:34:27 +0200 Original-Received: from localhost ([127.0.0.1]:48097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWeG6-0003YI-08 for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 17:33:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWeDR-0002lP-Qo for emacs-devel@gnu.org; Fri, 22 Aug 2008 17:30:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWeDP-0002kD-PC for emacs-devel@gnu.org; Fri, 22 Aug 2008 17:30:41 -0400 Original-Received: from [199.232.76.173] (port=46680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWeDP-0002k8-KB for emacs-devel@gnu.org; Fri, 22 Aug 2008 17:30:39 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:44512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWeDP-0001bc-Sm for emacs-devel@gnu.org; Fri, 22 Aug 2008 17:30:40 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 06FA857E311; Fri, 22 Aug 2008 17:32:03 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Fri\, 22 Aug 2008 22\:11\:03 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.90 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102844 Archived-At: "Juanma Barranquero" writes: > On Fri, Aug 22, 2008 at 20:50, Chong Yidong wrote: > >> Could you check if you have scroll-margin on? (This wasn't mentioned in >> your original post)? > > Because it is at the default value, 0. > >> Also, is there a way to reproduce this problem? > > In my setup, it is 100% repeatable. > > I start Emacs with the following .emacs: > > ;;;; .emacs starts here > (setq scroll-preserve-screen-position 'always > scroll-conservatively most-positive-fixnum > scroll-step 0) > ;;;; .emacs ends here > > then I visit NEWS with C-h C-n, press and keep it so. At first > it scrolls line by line; after a while it starts recentering. Looks like this value of scroll-conservatively is causing an integer overflow in scroll_conservatively, due to different maximum sizes of EMACS_INT and int. Bleah. I'll take a look.