Start emacs with emacs -Q -nw from an xterm.=C2=A0 Select some text in some=
other X window.=C2=A0 Then middle-click in Emacs.=C2=A0 The selection is in=
serted
using bracketed-paste, as expected.=C2=A0 The lossage for this event is
ESC [ 2 0 0 ~ [xterm-paste]
Now run M-x xterm-mouse-mode, and middle-click again.=C2=A0 You get a messa=
ge
gui-get-primary-selection: No selection is available
and nothing is inserted.=C2=A0 The lossage is
ESC [ < 1 ; 3 7 ; 1 0 M ESC [ < 1 ; 3 7 ; 1 0 m [mouse-yank-primary]<=
br class=3D"gmail_msg">
so the command is detected properly, just nothing is inserted.
I don't know whether we can do anythin=
g about this. This is probably an issue/missing feature in XTerm: even if w=
e get a mouse-yank-primary event, we can't get the X selection (unless =
OSC-52 is enabled). So XTerm should send the bracketed paste (or even the s=
tandard paste events) even if extended mouse tracking is enabled. Does anyb=
ody know whether this issue has already been discussed in some XTerm forum?=
=C2=A0