]> git.eshelyaron.com Git - emacs.git/commit
Add customization option for using UTF-8 coordinates in xt-mouse
authorPhilipp Stephani <phst@google.com>
Fri, 25 Mar 2016 10:17:38 +0000 (13:17 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Mar 2016 10:17:38 +0000 (13:17 +0300)
commit90fb9b38dd4a386a71cdf7c3bf6b42292db43c42
tree4ebbe0a89215012e8519b5ec580a014d293ac920
parentf14d463661f46f614125f88b56d73106fab9ece6
Add customization option for using UTF-8 coordinates in xt-mouse

* lisp/xt-mouse.el (xterm-mouse-utf-8): New customization option.
(xterm-mouse--read-coordinate): New function to replace
`xterm-mouse--read-utf8-char'; uses UTF-8 only if enabled.
(xterm-mouse--read-number-from-terminal): Adapt to new name.
(xterm-mouse-tracking-enable-sequence)
(xterm-mouse-tracking-disable-sequence): Replace constants with
functions, mark constants as obsolete.
(xterm-mouse--tracking-sequence): New helper function.
(turn-on-xterm-mouse-tracking-on-terminal): Use new functions;
enable UTF-8 only if customization option says so; store UTF-8
flag in terminal parameter.  (Bug#23009)

* test/automated/xt-mouse-tests.el: Add tests for xt-mouse.el.
lisp/xt-mouse.el
test/automated/xt-mouse-tests.el [new file with mode: 0644]