[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 Sun, 23 Sep 2018 07:20:13 +0000
with message-id <E1g3ygf-0000yJ-OJ@fasolo.debian.org>
and subject line Bug#901249: fixed in xterm 337-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: 337-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: Sun, 23 Sep 2018 08:59:12 +0200
Source: xterm
Binary: xterm
Architecture: source
Version: 337-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
Changes:
 xterm (337-1) unstable; urgency=medium
 .
   * New upstream release.
     - Ensure that only one of PRIMARY and CLIPBOARD is owned by xterm
       at a given time (Closes: #901249).
   * Bump debhelper compatibility level to 11.
     - Bump autoconf-dickey build dependency to (>= 2.52+20180819)
       (see #887390).
   * Bump Standards-Version to 4.2.1, no changes needed.
Checksums-Sha1:
 fff075ea17ee5ad52cced3ef837e008501a5d521 2406 xterm_337-1.dsc
 ebc239035199aae4eb41d705b5e25f2467031d83 1336781 xterm_337.orig.tar.gz
 c9446df7c4ee7e8bed21aeca28f373e6f80be70b 251 xterm_337.orig.tar.gz.asc
 ac75106341a84476ab3e28898dc9f376ab7700f6 105396 xterm_337-1.debian.tar.xz
 af287dc6e8033e49b3d2aba0310f7802623ed5cf 8333 xterm_337-1_source.buildinfo
Checksums-Sha256:
 4ea2aa73b4256216c10125e11f8c348f65e78d857cd5797766a7d9f311c44d19 2406 xterm_337-1.dsc
 ccac77ded347e78d5ffb69b381adf8b2377ce66644b8bec6308aaf19b9aecfa7 1336781 xterm_337.orig.tar.gz
 1ac5d1e24851d184defb7ba0eabfd7420e00e3abe76ed5456ab364ad0e120011 251 xterm_337.orig.tar.gz.asc
 02a29671cb036327d9fba8ee98e434efc9d55c4c3878c7416219248f54aeafe4 105396 xterm_337-1.debian.tar.xz
 441237b06ec54c433bf59bd37992cd45d9af957d6550bc4bc52d7bf3ed716d9a 8333 xterm_337-1_source.buildinfo
Files:
 4b6c79a2a367059b91951c426e50f5f4 2406 x11 optional xterm_337-1.dsc
 49b4b519e4b9c9019611cf926e1aedc1 1336781 x11 optional xterm_337.orig.tar.gz
 70eb3f75f03b2070f2d62242ea4562df 251 x11 optional xterm_337.orig.tar.gz.asc
 4537adb1b35d421e1912fa4ff5a9bb61 105396 x11 optional xterm_337-1.debian.tar.xz
 ffe8edf3ecbc5afb7a810071762c5031 8333 x11 optional xterm_337-1_source.buildinfo

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

iQIzBAEBCgAdFiEEKF8heKgv5Jai5p4QOxBucY1rMawFAlunOiQACgkQOxBucY1r
Maz1TBAA4PT07VJSUG+gGM1t7gyGGx1Wvqhmd2jCQY1NXTPN/yYVR7a/pzyNIFKY
8lnbXC2XVl0dO9ZIBfrDSKotsvtuXJs3cr+dUCyVCCaJONaH7sH7W0KvgLDTC5vZ
bhJpwrR09qc8fztsJtpg34WAx4FytN5lNWhxqH4d0Esd6nMRFd0YLkEETklkbQDP
mEjL4EA7FxC78g1s8eH5zoK6IUPNduB/2fcyzlllPLuSEub7Sihi23R0POA1/luZ
zuvysHxpC/espiYxBlSdvUnvTJdR9xmnVXUr6R0v9Q+JRhYywsk+Vtc5cMqVyg8G
kZBj1hliYv19/16vG0OuJ6oSll9ZTfm5q5ulO60yo7r4eknnLL9GX5WnasFAjuMu
HxXCAlxl3Q69JiA7CLkDYId6PqjJ7kNgvuFo7m/O5PeyXC5O97cDoFxadfkUd0rW
BsWM9Ss7+DXMXzqAHhrPi0X6VzJVg8Y0afW1kkBN1WIJkaCIYFimWFTrR5KUhBJW
AmWWgsgwGU3x8e95hHFmprbTZcxBQOyYiiXJbK4AfJjVHsJKDklws5IokO+Bb6rW
DnV24YqdxklIt9wHPQgzxwmVXszMp67tflMh6h56cimORxXu0Au8f23rt6q81qov
JgYMJHQRyWoEU6plbzaNFlWVZ5/m4gEKsAUG24nMNruAw8rb9sQ=
=BomF
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: