[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#901249: marked as done (xterm: translation overrides for copy/paste do not work as documented)



Your message dated Wed, 12 Dec 2018 19:49:45 +0000
with message-id <E1gXAVt-000COr-FZ@fasolo.debian.org>
and subject line Bug#901249: fixed in xterm 338-1
has caused the Debian Bug report #901249,
regarding xterm: translation overrides for copy/paste do not work as documented
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
901249: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901249
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xterm
Version: 333-1
Severity: normal

I was working on my .Xresources and found this quite crazy.
I could not select PRIMARY and CLIPBOARD independent of each
other. To reproduce, I chose to have *only* the lines from
the manual page…

           *VT100*translations:    #override \n\
              ~Shift~Ctrl<Btn2Up>: insert-selection(PRIMARY, CUT_BUFFER0) \n\
               Shift~Ctrl<Btn2Up>: insert-selection(CLIPBOARD, CUT_BUFFER1) \n\
              ~Shift     <BtnUp> : select-end(PRIMARY, CUT_BUFFER0) \n\
               Shift     <BtnUp> : select-end(CLIPBOARD, CUT_BUFFER1)

… loaded with “xrdb -merge filename”, with no .Xresources
at all, then I started two xterms, in one I selected, in
another, I ran xsel commands to discern what is the content
of PRIMARY and CLIPBOARD, respectively.

tglase@tglase-nb:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<> C<>
tglase@tglase-nb:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<foo> C<>
tglase@tglase-nb:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<bar> C<bar>
tglase@tglase-nb:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<foo> C<foo>

After the first command I selected “foo” without Shift.
⇒ as expected, PRIMARY gets assigned “foo”, CLIPBOARD is left alone
After the second command I selected “bar” with Shift.
⇒ unexpectedly, PRIMARY *also* gets “bar” in addition to CLIPBOARD
After the third line, I selected “foo” without Shift again.
⇒ unexpectedly, CLIPBOARD *also* gets “foo” in addition to PRIMARY


For comparison, here’s the same sequence of things on MirBSD,
with xterm 200 on XFree86:

tg@blau:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<> C<>
tg@blau:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<foo> C<>
tg@blau:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<bar> C<bar>
tg@blau:~ $ echo "P<$(xsel -p -o)> C<$(xsel -b -o)>"
P<foo> C<>

For that, I used this in .Xresources though:

*VT100*translations: #override \n\
	 Shift~Ctrl<KeyPress>Insert:insert-selection(PRIMARY, CUT_BUFFER0) \n\
	 Shift Ctrl<KeyPress>Insert:insert-selection(CLIPBOARD, CUT_BUFFER1) \n\
	~Shift~Ctrl<Btn2Up>:insert-selection(PRIMARY, CUT_BUFFER0) \n\
	 Shift~Ctrl<Btn2Up>:insert-selection(CLIPBOARD, CUT_BUFFER1) \n\
	~Shift<BtnUp>:select-end(PRIMARY, CUT_BUFFER0) \n\
	 Shift<BtnUp>:select-end(CLIPBOARD, CUT_BUFFER1)

(Actually, do I need a trailing \n or \n\ after the last line?)

Here, selecting “foo” without Shift again *clears* CLIPBOARD
instead of assigning to it. Still buggy.


I was considering not using cut buffers in xterm 333 on X.org:

*VT100*translations: #override \n\
	 Shift~Ctrl<KeyPress>Insert:insert-selection(PRIMARY) \n\
	 Shift Ctrl<KeyPress>Insert:insert-selection(CLIPBOARD) \n\
	~Shift~Ctrl<Btn2Up>:insert-selection(PRIMARY) \n\
	 Shift~Ctrl<Btn2Up>:insert-selection(CLIPBOARD) \n\
	~Shift<BtnUp>:select-end(PRIMARY) \n\
	 Shift<BtnUp>:select-end(CLIPBOARD) \n\

Anyway, from the above tests I concur that this never worked
as documented and still does not work as documented.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages xterm depends on:
ii  libc6           2.27-3
ii  libfontconfig1  2.13.0-5
ii  libfreetype6    2.8.1-2
ii  libice6         2:1.0.9-2
ii  libtinfo6       6.1+20180210-3
ii  libutempter0    1.1.6-3
ii  libx11-6        2:1.6.5-1
ii  libxaw7         2:1.0.13-1+b2
ii  libxft2         2.3.2-2
ii  libxinerama1    2:1.1.3-1+b3
ii  libxmu6         2:1.1.2-2
ii  libxpm4         1:3.5.12-1
ii  libxt6          1:1.1.5-1
ii  xbitmaps        1.1.1-2

Versions of packages xterm recommends:
ii  x11-utils  7.7+4

Versions of packages xterm suggests:
pn  xfonts-cyrillic  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: xterm
Source-Version: 338-1

We believe that the bug you reported is fixed in the latest version of
xterm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 901249@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sven Joachim <svenjoac@gmx.de> (supplier of updated xterm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 12 Dec 2018 20:31:33 +0100
Source: xterm
Binary: xterm
Architecture: source
Version: 338-1
Distribution: unstable
Urgency: medium
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Sven Joachim <svenjoac@gmx.de>
Description:
 xterm      - X terminal emulator
Closes: 901249 913237 913815
Changes:
 xterm (338-1) unstable; urgency=medium
 .
   * New upstream release.
     - Amend solution for #758633 to ensure that replies for bracketed
       paste are not sent while processing a selection for exec-formatted
      (Closes: #913237).
     - Change compiled-in default for saveLines to match the resource-file
       changed in xterm 192 (Closes: #913815).
     - Revert the change which prevented concurrent ownership of different
       selection targets, and instead modify selection storage so that
       different concurrent requests for different selection targets will
       be stored/retrieved independently (Closes: #901249).
   * Mark the autopkgtests as superficial.
   * Update copy of XTerm FAQ to revision 1.375 (dated 2018/10/16).
Checksums-Sha1:
 b41f54fa6bd8db84609075c78413d721fbf4dfcf 2406 xterm_338-1.dsc
 50a3111fa3a583321521e3c2dcece56a022afbb3 1344219 xterm_338.orig.tar.gz
 37b9e095fb559cfd5bfe8d19f4ccb8e73b8c19dc 251 xterm_338.orig.tar.gz.asc
 0f11f5327696d7a426eaab7e55ee3799e07c97bb 108444 xterm_338-1.debian.tar.xz
 00bbc2a8536997bd036a0e58e4480427396ee2bd 8217 xterm_338-1_source.buildinfo
Checksums-Sha256:
 a07602b2a813800ae63807512c53f590091cc2f7129f2fe9456bacbdf1137195 2406 xterm_338-1.dsc
 b93536f5ed9847a701c1a9a81aca99a769cfd5dc001652b5e1bb600d7bfb871e 1344219 xterm_338.orig.tar.gz
 9b5e7a085bd02320241110a56f7ae01a17bf5e4b76437f5bea3a8d1b1bf4565a 251 xterm_338.orig.tar.gz.asc
 348d4aca6b269d9c9e3743c953955cb19ae8d32ebdd9e3d15ff8ec01a8e8467e 108444 xterm_338-1.debian.tar.xz
 696640bcf9d8c59007e27e28f95657f70b0e0633aad22897b101c154c0cde7eb 8217 xterm_338-1_source.buildinfo
Files:
 6882d3b28892f861093cc4a0deb504b6 2406 x11 optional xterm_338-1.dsc
 76b32f050eec2ca80e825f3644a3168e 1344219 x11 optional xterm_338.orig.tar.gz
 b4417dbcbff7748841a4977e81c728e7 251 x11 optional xterm_338.orig.tar.gz.asc
 77fecac2005b0d2c68a87e339d36093c 108444 x11 optional xterm_338-1.debian.tar.xz
 536463bce1302e300c8dca3637122311 8217 x11 optional xterm_338-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKF8heKgv5Jai5p4QOxBucY1rMawFAlwRYk0ACgkQOxBucY1r
MawnOg/+Ndo9iWnOWdIrRNo5iWNI2Mcx2xHliOzYC3AK6LQogJi6dTZMGSxGyjCd
WCuz51qbmd2m7d05rn46Crl+W1ImYeUdD5qgl4eZiC8Y1d1vrf4004pscv4N0bOy
6ou9AMeDSG1otaOeEbEJIgSg6jDPmTdI0BHUETAFpMVfy3zQO34smRIxqlb2N4bx
W+uQQJDPGp1jRpQuf2y9suB2tg2JsNjvlVJ6hoBGGYsDpLqlPcTXJktzYYuPV4QB
gCr6FaTKSOpjtKXt5aFnN42s2VcgsnfxJ42Q+OcijBEi0BWL6wADRfRtE8A+TeTv
MbWwRE1fIOxKE49QPNDnnRnmuRtv4qL2R5jmsgzqWt0goGkKJI7rg2682r5KTpSS
erWNHMiR/oS2VzknOBw3auz2VhwD0K1PLk0Hg3g+7X1Qo4O4XkGkJ1guIZLCTb1r
2P65Mmy6IVqctZg1NPvItnYF+GUYwrXSwgWIcuMLP25XIDdWCsxDl/SmNJmb5fXE
aVGudE7zhZssRIfNCpaO9DyXYbs7FAKAV2dfMvTvQeDlU2k1ItGo5oGE3Dhg6Vuc
u2HKfEazepziywibR+s/ennpr/Kf39vt3aI+8jP/XFrphnwyCJkUj9Y9HefRybrC
5EQPS0ulCHm1Eq3Q6TnkP5VVszpStQKEZ/2brN7EndjP3nUmPXk=
=CqOL
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: