Guard terminal parameter in XTerm mouse mode
commit13d468fc0793e23a2f7cd4338b4f5e42e16a96ee
authorPhilipp Stephani <phst@google.com>
Tue, 22 Nov 2016 20:32:11 +0000 (22 21:32 +0100)
committerPhilipp Stephani <phst@google.com>
Mon, 28 Nov 2016 18:45:03 +0000 (28 19:45 +0100)
treebe4dde93eb8377c69ce86bcb4d2444299c05d242
parent1228055b320dbed92ab400c4a95813a2b8023909
Guard terminal parameter in XTerm mouse mode

It has been observed (in the HTerm terminal emulator) that the
event stored in the 'xterm-mouse-last-down' terminal parameter gets
overwritten during a mouse drag operation, causing Emacs to attempt to
synthesize the non-existing <drag-mouse-0> event.  Copy the event into
the terminal parameter to protect against such modifications.

* lisp/xt-mouse.el (xterm-mouse-translate-1): Guard against modification
of input event list.
lisp/xt-mouse.el