From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: scroll-conservatively overflow Date: Sat, 17 Apr 2004 15:42:07 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040416114146.38AB.JMBARRANQUERO@wke.es> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1082231020 24317 80.91.224.253 (17 Apr 2004 19:43:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2004 19:43:40 +0000 (UTC) Cc: jmbarranquero@wke.es, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Apr 17 21:43:35 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEvix-0002lj-00 for ; Sat, 17 Apr 2004 21:43:35 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BEviw-0004zw-00 for ; Sat, 17 Apr 2004 21:43:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BEviv-00017P-Rf for emacs-devel@quimby.gnus.org; Sat, 17 Apr 2004 15:43:33 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BEviq-00016s-Dq for emacs-devel@gnu.org; Sat, 17 Apr 2004 15:43:28 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BEviI-0000xh-Qh for emacs-devel@gnu.org; Sat, 17 Apr 2004 15:43:26 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BEviI-0000xd-GB for emacs-devel@gnu.org; Sat, 17 Apr 2004 15:42:54 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BEvhX-00058R-Ms; Sat, 17 Apr 2004 15:42:07 -0400 Original-To: no-spam@cua.dk (Kim F. Storm) In-reply-to: (no-spam@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21829 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21829 > That used to work; now it doesn't (although I'm not sure it is because > of a recent change or I just took a time to notice), because > scroll-conservatively gets multiplied by FRAME_LINE_HEIGHT (f) in a > couple of places, and that causes an overflow. That change was made almost a year ago... Multiplying by FRAME_LINE_HEIGHT is right in principle, but the overflow is a bug. Perhaps we should use long long for that multiplication, and if the result is bigger than the largest positive integer, reduce it to the largest positive integer.