Hi there,

I have found a problem in the mouse handling code in xt-mouse.el.
Unfortunately I cannot provide a fix as I don't completely understand
the code, but I'd like to point out this nuisance anyway.

The problem manifests itself in producing "Arithmetic range error:
truncate ..." when I click inside xterm.  I trace it down to the
following code in xterm-mouse-event:

         (timestamp (truncate
                     (* 1000
                        (- (float-time)
                           (or xt-mouse-epoch
                               (setq xt-mouse-epoch (float-time)))))))

This code - after a certain time - produces arithmetic range errors on
the truncate call.  When I simply "watch" the value of the argument, I
see it grow.

On my 32-Bit GNU/Linux platform the first truncate expression on an
integer that I get an arithmetic error is

(truncate 268435456.0)

Interpreting this is milliseconds, it follows that after 74 hours, 33
minutes and 55 seconds I will start getting the error :(

Can someone help me with this?  I really would like to circumvent
quitting my emacs every few days :)

Thanks
  Detlev

-- 
Referee's report: This paper contains much that is new and much that
is true. Unfortunately, that which is true is not new and that which
is new is not true.


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to