emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll-conservatively overflow


From: Kim F. Storm
Subject: Re: scroll-conservatively overflow
Date: 18 Apr 2004 23:31:57 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Juanma Barranquero <address@hidden> writes:

> On Sat, 17 Apr 2004 15:42:07 -0400, Richard Stallman <address@hidden> 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 <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]