diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/xt-mouse.el | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 02e4dd3ca73..dcacdb08bd9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-03-21 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * xt-mouse.el (xt-mouse-epoch): New variable. | ||
| 4 | (xterm-mouse-event): Use float-time. | ||
| 5 | |||
| 1 | 2007-03-21 Nick Roberts <nickrob@snap.net.nz> | 6 | 2007-03-21 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 7 | ||
| 3 | * xt-mouse.el (xterm-mouse-event): Compute a timestamp using | 8 | * xt-mouse.el (xterm-mouse-event): Compute a timestamp using |
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index f4634a72ff5..e83911a78fc 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el | |||
| @@ -127,6 +127,8 @@ | |||
| 127 | (x (- (xterm-mouse-event-read) #o40 1)) | 127 | (x (- (xterm-mouse-event-read) #o40 1)) |
| 128 | (y (- (xterm-mouse-event-read) #o40 1)) | 128 | (y (- (xterm-mouse-event-read) #o40 1)) |
| 129 | (time (current-time)) | 129 | (time (current-time)) |
| 130 | ;; Emulate timestamp information. This is accurate enough | ||
| 131 | ;; for default value of mouse-1-click-follows-link (450msec). | ||
| 130 | (timestamp (truncate | 132 | (timestamp (truncate |
| 131 | (* 1000 | 133 | (* 1000 |
| 132 | (- (float-time) | 134 | (- (float-time) |