[Top][All Lists]

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

Problem in xterm-mouse-event in longrunning emacs process

From: Detlev Zundel
Subject: Problem in xterm-mouse-event in longrunning emacs process
Date: Thu, 24 May 2007 10:50:57 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

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 :)


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.

reply via email to

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