# HG changeset patch # User Jan D # Date 1279130022 -7200 # Node ID a6e068e858a454acdb41a77297737d8a2ae1a1a4 # Parent 54860321176514662080daf8c4f0ccc0a682e453 * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127 now that unicode is used (Bug#6594). diff -r 548603211765 -r a6e068e858a4 lisp/ChangeLog --- a/lisp/ChangeLog Wed Jul 14 12:11:39 2010 -0400 +++ b/lisp/ChangeLog Wed Jul 14 19:53:42 2010 +0200 @@ -1,3 +1,8 @@ +2010-07-14 Jan Djärv + + * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127 + now that unicode is used (Bug#6594). + 2010-07-14 Chong Yidong * simple.el (push-mark-command): Set the selection if diff -r 548603211765 -r a6e068e858a4 lisp/xt-mouse.el --- a/lisp/xt-mouse.el Wed Jul 14 12:11:39 2010 -0400 +++ b/lisp/xt-mouse.el Wed Jul 14 19:53:42 2010 +0200 @@ -122,8 +122,8 @@ ;; read xterm sequences above ascii 127 (#x7f) (defun xterm-mouse-event-read () (let ((c (read-char))) - (if (< c 0) - (+ c #x8000000 128) + (if (> c #x3FFF80) + (+ 128 (- c #x3FFF80)) c))) (defun xterm-mouse-truncate-wrap (f)