From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: scroll-conservatively overflow Date: 18 Apr 2004 23:31:57 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040417224421.1597.LEKTU@mi.madritel.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082316889 6119 80.91.224.253 (18 Apr 2004 19:34:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Apr 2004 19:34:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Apr 18 21:34:44 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 1BFI3w-00081n-00 for ; Sun, 18 Apr 2004 21:34:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFI3v-0006d9-00 for ; Sun, 18 Apr 2004 21:34:44 +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 1BFI3n-0005ua-6Q for emacs-devel@quimby.gnus.org; Sun, 18 Apr 2004 15:34:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFI3P-0005t8-Cr for emacs-devel@gnu.org; Sun, 18 Apr 2004 15:34:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFI1X-0004X8-Ny for emacs-devel@gnu.org; Sun, 18 Apr 2004 15:32:47 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFI1W-0004Vx-Jc for emacs-devel@gnu.org; Sun, 18 Apr 2004 15:32:14 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 5685C47FEB6; Sun, 18 Apr 2004 21:32:13 +0200 (CEST) Original-To: Juanma Barranquero In-Reply-To: <20040417224421.1597.LEKTU@mi.madritel.es> Original-Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:21850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21850 Juanma Barranquero writes: > On Sat, 17 Apr 2004 15:42:07 -0400, Richard Stallman wrote: > > > 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. > > Well, that's almost what my patch does, with the difference that for > large values of scroll-conservatively it won't produce the largest > positive integer, but > > int(most-positive-fixnum / FRAME_LINE_HEIGHT (f)) * FRAME_LINE_HEIGHT (f) > > but the two are equivalent for all practical purposes. Yes, IMO your patch is good enough in practice. -- Kim F. Storm http://www.cua.dk