From: Jan D Date: Wed, 14 Jul 2010 17:53:42 +0000 (+0200) Subject: * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127 X-Git-Tag: emacs-pretest-23.2.90~139^2~55 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=243881ed1372458823182c219d71c43e9d174ddc;p=emacs.git * xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127 now that unicode is used (Bug#6594). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4655469ed54..b44d00d72d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index 2d38c6e827c..f802103fbd7 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el @@ -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)