From unknown Tue Jun 17 01:29:00 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#24419 <24419@debbugs.gnu.org>
To: bug#24419 <24419@debbugs.gnu.org>
Subject: Status: 25.1.50; xterm-mouse-mode appears to disable bracketed paste
Reply-To: bug#24419 <24419@debbugs.gnu.org>
Date: Tue, 17 Jun 2025 08:29:00 +0000
retitle 24419 25.1.50; xterm-mouse-mode appears to disable bracketed paste
reassign 24419 emacs
submitter 24419 Philipp Stephani
severity 24419 normal
thanks
From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 12 09:19:43 2016
Received: (at submit) by debbugs.gnu.org; 12 Sep 2016 13:19:43 +0000
Received: from localhost ([127.0.0.1]:57124 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bjR9C-0001Yr-QT
for submit@debbugs.gnu.org; Mon, 12 Sep 2016 09:19:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44779)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1bjR9A-0001Ye-Dy
for submit@debbugs.gnu.org; Mon, 12 Sep 2016 09:19:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bjR90-0005Jf-UB
for submit@debbugs.gnu.org; Mon, 12 Sep 2016 09:19:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:53791)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bjR90-0005JH-R7
for submit@debbugs.gnu.org; Mon, 12 Sep 2016 09:19:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35733)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bjR8y-0004Lt-5r
for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 09:19:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1bjR8t-0005HC-VM
for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 09:19:27 -0400
Received: from mail-wm0-f41.google.com ([74.125.82.41]:38784)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1bjR8t-00056D-LQ
for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 09:19:23 -0400
Received: by mail-wm0-f41.google.com with SMTP id 1so144264514wmz.1
for ; Mon, 12 Sep 2016 06:19:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=wQ5xeHc1rCudlJs+94EfCQMvIzEb1y2vsir09849pvo=;
b=Ln8RnFFZfoXB9JGv/9+nnOdsk7wTEiV/s+wUsMK3zHd34aq/K3NeZ1wAj9rMicwg2Y
H9FrPyD4FWDta4FcfJf8HMHL1uZeS3FQRgxXeIuUUH7o6lcF+sju/vDXWamdB1Yxkebi
urXiQxFBneYibBrAqH0iNAOO0fUsElFXOTU/ntxT+OKQmn/eXMNa06IJ5OkYi66EDgCX
+nvnMb8xy+8E81A3oEk2hl2mMN60pVYZHOC8rFz9bxAjxX2IM/vl/fKYBjUVZ/YSm/sD
q3599EadwJjfKsAD+mPq0Srt9L91OkjRhxQNr2l/sEdOZ/ScI304DSaaIB0P/2ZOJqWp
hMGQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=wQ5xeHc1rCudlJs+94EfCQMvIzEb1y2vsir09849pvo=;
b=Tm+jIGWqFVa/crvBry+3k9NPb/FZizcMOlYERtKyMZEzSHdPCqwQsVOjKBBGc7evn3
vcwPB/332Mybbq3CqBGSZ30Pi3wrhR20XaOAfHJBZXbx25PvlLgU0c4sH91IA3jbLc3b
UEb5HGeYwSG0MxHQ9NAAcBlTEHIEP3KWEGDOkIw/1BV2cESw4WS64EaP0Kv8Wtg1KENO
D0ODebUltjJiNTH+Sw7S4NvVb6VM8Pa9V4fnzDXbiMM3jwbgAZZltWJ30VRBrWfnaHkr
0ZTQSCiAj59yONRQcDC6fiYmoiRp+YLcbHpyzK4HcPZ/K0plIZnGlwY5G6BnUXrq0iah
A2ZQ==
X-Gm-Message-State: AE9vXwPIyVBOPvQsXsf8yByCQp2JsW1sCTvAdVgm2IduBkJ3KrMdeD0pyOTXxX2PJsLeiw==
X-Received: by 10.28.143.7 with SMTP id r7mr11507944wmd.65.1473686281333;
Mon, 12 Sep 2016 06:18:01 -0700 (PDT)
Received: from a.muc.corp.google.com ([2a00:79e0:15:4:2cd8:65c6:9966:82f5])
by smtp.gmail.com with ESMTPSA id g184sm238375wme.15.2016.09.12.06.18.00
for
(version=TLS1_2 cipher=AES128-SHA bits=128/128);
Mon, 12 Sep 2016 06:18:00 -0700 (PDT)
From: Philipp Stephani
To: bug-gnu-emacs@gnu.org
Subject: 25.1.50; xterm-mouse-mode appears to disable bracketed paste
Date: Mon, 12 Sep 2016 15:15:54 +0200
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
[fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.8 (---)
Start emacs with emacs -Q -nw from an xterm. Select some text in some
other X window. Then middle-click in Emacs. The selection is inserted
using bracketed-paste, as expected. The lossage for this event is
ESC [ 2 0 0 ~ [xterm-paste]
Now run M-x xterm-mouse-mode, and middle-click again. You get a message
gui-get-primary-selection: No selection is available
and nothing is inserted. The lossage is
ESC [ < 1 ; 3 7 ; 1 0 M ESC [ < 1 ; 3 7 ; 1 0 m [mouse-yank-primary]
so the command is detected properly, just nothing is inserted.
In GNU Emacs 25.1.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2016-09-05 built on unknown
Repository revision: 6acff25280dbb97b5e9ddfd872b33ceb36b0470a
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Source file =E2=80=98/usr/local/google/home/phst/ThirdParty/Emacs/lisp/emac=
s-lisp/bytecomp.el=E2=80=99 newer than byte-compiled file
Source file =E2=80=98/usr/local/google/home/phst/ThirdParty/Emacs/lisp/emac=
s-lisp/cconv.el=E2=80=99 newer than byte-compiled file
Source file =E2=80=98/usr/local/google/home/phst/ThirdParty/Emacs/lisp/emac=
s-lisp/byte-opt.el=E2=80=99 newer than byte-compiled file
Configured using:
'configure --with-modules'
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 97638 6054)
(symbols 48 20654 0)
(miscs 40 325 119)
(strings 32 17930 4359)
(string-bytes 1 588501)
(vectors 16 13773)
(vector-slots 8 451974 2693)
(floats 8 183 16)
(intervals 56 199 0)
(buffers 976 12)
(heap 1024 46212 1197))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3=
=B6schen
Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do =
not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.
From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 12 10:35:03 2016
Received: (at 24419) by debbugs.gnu.org; 12 Sep 2016 14:35:03 +0000
Received: from localhost ([127.0.0.1]:57811 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1bjSK1-0003VS-2V
for submit@debbugs.gnu.org; Mon, 12 Sep 2016 10:35:03 -0400
Received: from mail-lf0-f51.google.com ([209.85.215.51]:32785)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1bjSJt-0003VB-7D
for 24419@debbugs.gnu.org; Mon, 12 Sep 2016 10:34:55 -0400
Received: by mail-lf0-f51.google.com with SMTP id h127so88872868lfh.0
for <24419@debbugs.gnu.org>; Mon, 12 Sep 2016 07:34:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=eYLzOTQoTFMFoMR44w5SYRjCABTQIF2d5uuHhup3U04=;
b=P8E0WP19vt2stBSe4orMqNWRDa+LOceuaGoYn/5jyFXq70KulqrYVlNjnpuaZBOwEi
/PkWoe/OLNqxRJ5z1T5mPtMEeifdMA6VeMUvPUGgRkJulB5iPYdm0qdPcYUIP+sFl1sY
uvWsnbEGar0oonxWrHud9Fw2OXRHcBLqH4YdJV8Ili+kLYBE1C7ZNumF8AZHb6HUcg9R
25pEoDbYUGNKK8LAy7fj85rBiwxpdom31R5QQifJlSH8DiEpZGtdEkfqJoI/s7D12rrB
84C3z0IFNdLQG09VY4aGg612tdxPw5+xsi3tJ3IEZIOvpxJp2DX+DHoJFEdj6pFJ1VxO
S3hg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=eYLzOTQoTFMFoMR44w5SYRjCABTQIF2d5uuHhup3U04=;
b=UUaxzN3bVlpVYsiVVXdD0B7Ye1IvQPa1dB/Z2bILL/Z8fd0AZjf/Ylam1o6msUHSl1
pMNJwDqE3N998alnhFKjN/00/3br/+968JGjvz5kUHrPn5O495P/l9HY16EYRXATTPk+
lqHVpuE+7uGa7b97OL/be6GobhKQeb4S5do1dqVwPMbB2YJKMAM89DtOVL5aFnj/raQq
1I0kNOI43owhDhcomoOGslQVJrnxvpkjZDu2optZzuidAr2Pq6M6NSUrhoFgAr9toJYu
t1Gx/uSRkk8eq0rcFqZfoEWRYCXuSUvheX26rV0UgsJ6EiS8k8Sfe0bElwUtu00g3KRW
N4uA==
X-Gm-Message-State: AE9vXwOAiLz81gUHfgEijBbRnVcwjQHlYfYPLdwB1gyFPMjW16D7FFqnUtziXXml9vNUC7wOVQ65pixIX3GRHA==
X-Received: by 10.194.87.169 with SMTP id az9mr15507725wjb.81.1473690882451;
Mon, 12 Sep 2016 07:34:42 -0700 (PDT)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Mon, 12 Sep 2016 14:34:31 +0000
Message-ID:
Subject: Re: bug#24419: 25.1.50;
xterm-mouse-mode appears to disable bracketed paste
To: 24419@debbugs.gnu.org
Content-Type: multipart/alternative; boundary=047d7b10c7e78f582e053c506529
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 24419
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.1 (/)
--047d7b10c7e78f582e053c506529
Content-Type: text/plain; charset=UTF-8
Philipp Stephani schrieb am Mo., 12. Sep. 2016 um
15:20 Uhr:
>
> Start emacs with emacs -Q -nw from an xterm. Select some text in some
> other X window. Then middle-click in Emacs. The selection is inserted
> using bracketed-paste, as expected. The lossage for this event is
>
> ESC [ 2 0 0 ~ [xterm-paste]
>
> Now run M-x xterm-mouse-mode, and middle-click again. You get a message
>
> gui-get-primary-selection: No selection is available
>
> and nothing is inserted. The lossage is
>
> ESC [ < 1 ; 3 7 ; 1 0 M ESC [ < 1 ; 3 7 ; 1 0 m [mouse-yank-primary]
>
> so the command is detected properly, just nothing is inserted.
>
>
I don't know whether we can do anything about this. This is probably an
issue/missing feature in XTerm: even if we 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 standard paste events) even if
extended mouse tracking is enabled. Does anybody know whether this issue
has already been discussed in some XTerm forum?
--047d7b10c7e78f582e053c506529
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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
--047d7b10c7e78f582e053c506529--