Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #137: User was distributing pornography on server; system seized by FBI.


comp / comp.os.linux.misc / Re: What is the XA_SECONDARY clipboard?

SubjectAuthor
* Re: What is the XA_SECONDARY clipboard?Javier
+* Re: What is the XA_SECONDARY clipboard?Rich
|`* Re: What is the XA_SECONDARY clipboard?Javier
| `* Re: What is the XA_SECONDARY clipboard?Rich
|  `- Re: What is the XA_SECONDARY clipboard?Javier
+* Re: What is the XA_SECONDARY clipboard?F Russell
|`* Re: What is the XA_SECONDARY clipboard?T
| `* Re: What is the XA_SECONDARY clipboard?Eli the Bearded
|  `- Re: What is the XA_SECONDARY clipboard?Richard Kettlewell
`* Re: What is the XA_SECONDARY clipboard?Charles Lindsey
 `* Re: What is the XA_SECONDARY clipboard?Eli the Bearded
  `* Re: What is the XA_SECONDARY clipboard?Charles Lindsey
   +- Re: What is the XA_SECONDARY clipboard?Richard Kettlewell
   `- Re: What is the XA_SECONDARY clipboard?Andreas Kohlbach

1
Subject: Re: What is the XA_SECONDARY clipboard?
From: Javier
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Date: Tue, 7 Apr 2020 00:19 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 06 Apr 2020 19:19:45 -0500
From: javier@invalid.invalid (Javier)
Subject: Re: What is the XA_SECONDARY clipboard?
Newsgroups: comp.os.linux.misc,comp.os.linux.x
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
Message-ID: <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
Date: Mon, 06 Apr 2020 19:19:46 -0500
Lines: 72
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-UMXVNK3pug5YLJ9imBDwAdQu6Kt/dxJlnyJB4sEFZrG7decLRJ7+L1O7xgZJO8dF9wYvUU3VYA+X7gj!+sHAI4hiFYxp1DYF1EjFnWLjYo/2tSdMoKFtgrqcHek8qp7FpSSEKUlK/i9TgaasFZLrP0nIDUQT!xbehEqijdl/3JpVx1ri8cw02CrA=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4078
View all headers

In comp.os.linux.misc Eli the Bearded <*@eli.users.panix.com> wrote:
> In comp.os.linux.misc, T <T@invalid.invalid> wrote:
>
> I added a crosspost to comp.os.linux.x. I had also been hoping someone
> would answer before me, but...
>
>> From "man xclip" I see that I have three clipboards:
> ...
>> "secondary" or XA_SECONDARY
>>
>> I am very familiar with the first two. What is XA_SECONDARY?
>> And how do I use it?

xclip-copyfile (a sh script distributed together with xclip) uses secondary.

Other than that it is used by very few applications. Having primary and
clipboard is already confusing enough for everybody.

One of the few applications that uses the secondary is emacs when it
runs on a graphical window. Pushing Alt+middle mouse button
<M-mouse-2> runs the command mouse-yank-secondary and will paste the
secondary.

xterm can also use the secondary selection, but IIRC it is not enabled
by default, you need to enable it yourself modifying the
vt100.translations resource (as shown in the previous post by Eli).
For the rest of X clients I don't know any other that uses the
secondary selection.

Since the secondary selection is unused, it is good for storing binary
data. Putting binary data in primary/clipboard is something to be
avoided, since you risk pasting a lot of garbage in a terminal or some
other application.

That is what xclip-copyfile does. It is a very simple shell script
that stores files in tar.gz format in the secondary selection.

$ cat $(which xclip-copyfile)
...
gzip -c "${archive}" | xclip -selection secondary -loops 1 -i

$ cat $(which xclip-pastefile)
...
xclip -selection secondary -o | gunzip -c | tar xv

Most applications just ignore the secondary selection, so it's safe to
use for binary data.

Its usefulness is to be able transfer files from different hosts, as
long as you have a remote terminal open with 'ssh -X'. For exchanging
files in the same computer the simplest thing is to use cp.

The nice thing about the X selections is that X is network
transparent and programs in different computers can talk to each
other. xclip/xsel can even pass data through nested ssh connections,
which you may need to do when you are passing through firewalls (just
remember to add the '-X' option to ssh).

Another nice thing about xclip/xsel is that they work well even in the
case of high latency. The X protocol over high latency links is quite
bad for graphical applications. This is specially truth nowadays when
things gets connected over the wifi adding a lot of extra latency.
You need to rely on things like NX (which has other problems).

This is a good example of how the X protocol can be used for useful
things in tty applications without having to worry about latency.
These are the kind of things that the Wayland crew doesn't understand
and think that forwarding whole desktops is what everybody needs, and
X should be ditched altogether.

PS: X also has CUT_BUFFER0 to CUT_BUFFER7, but I have never understood
what they are. I would be grateful if somebody can explain what they are for.

Subject: Re: What is the XA_SECONDARY clipboard?
From: Rich
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: A noiseless patient Spider
Date: Tue, 7 Apr 2020 02:10 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Tue, 7 Apr 2020 02:10:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Sender: <rellis@d820.dp100.com>
Message-ID: <r6gne1$vq1$1@dont-email.me>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us> <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
Injection-Date: Tue, 7 Apr 2020 02:10:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="eefdbfe264c1dbb8b2a487e871238130";
logging-data="32577"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19T2/Vpba130t5xne0SD99p"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:lVwxLhMh89Ul5PcsoS2eToU9j9o=
View all headers

In comp.os.linux.misc Javier <javier@invalid.invalid> wrote:
> PS: X also has CUT_BUFFER0 to CUT_BUFFER7, but I have never
> understood what they are. I would be grateful if somebody can
> explain what they are for.

They are defined by the ICCCM here:

https://tronche.com/gui/x/icccm/sec-3.html#s-3

They are basically what the ms-windows clipboard is (except there are
eight of them instead of just one). Specific server side storage areas
for data that can later be retreived.

Selections are the more powerful system, defined here:

https://tronche.com/gui/x/icccm/sec-2.html#s-2

They are real inter-client communication channels.

And note, X allows you to have as many selections as you want (although
few programs ever used more than the three basic selections that the
ICCCM requires always be provided):

"Note that there can be an arbitrary number of selections (each
named by an atom) and that they are global to the server."

Subject: Re: What is the XA_SECONDARY clipboard?
From: F Russell
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: NewsGuy.com
Date: Tue, 7 Apr 2020 02:48 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news4
From: fr@random.info (F Russell)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: 7 Apr 2020 02:48:07 GMT
Organization: NewsGuy.com
Lines: 18
Message-ID: <r6gpl7016tt@news4.newsguy.com>
References: <o9n8a5$fd6$1@dont-email.me>
<eli$1703081723@qz.little-neck.ny.us>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
NNTP-Posting-Host: p07a5a17bd3e35bff26bd6599889b8337db5a0cb04d26b5f5.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
User-Agent: Pan/0.147 (Sweet Solitude; ceadf9e
refs/keep-around/ceadf9e8aa40e3fd0bd983505211eec3df33f747)
X-Received-Bytes: 1624
X-Received-Body-CRC: 3863245251
View all headers

On Mon, 06 Apr 2020 19:19:46 -0500, Javier wrote:

>
> Other than that it is used by very few applications. Having primary and
> clipboard is already confusing enough for everybody.
>

It's even more confusing in that these selections, primary, secondary, and
clipboard, are merely the standard, built-in selections. An application
can define any number of selection types for data transfer. These user-defined
selections can only be exploited if another application knows about them.
The standard, built-in selections, however, are understood by most other
applications.

The X Window selections are fundamentally different from the "clipboard"
that is found in MS Windows, but most people tend to view these two different
systems as being identical.

Subject: Re: What is the XA_SECONDARY clipboard?
From: T
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: A noiseless patient Spider
Date: Tue, 7 Apr 2020 04:41 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Mon, 6 Apr 2020 21:41:16 -0700
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <r6h09c$asq$3@dont-email.me>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
<r6gpl7016tt@news4.newsguy.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Apr 2020 04:41:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2b265023a6c66aad42c3d75c67f97789";
logging-data="11162"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/n20Lx9lUg0bbvM1gZHlLcXelkeAchWX4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.6.0
Cancel-Lock: sha1:4SuOAkE/FBAmJHza2Zc4DcmhilQ=
In-Reply-To: <r6gpl7016tt@news4.newsguy.com>
Content-Language: en-US
View all headers

On 2020-04-06 19:48, F Russell wrote:
> On Mon, 06 Apr 2020 19:19:46 -0500, Javier wrote:
>
>>
>> Other than that it is used by very few applications. Having primary and
>> clipboard is already confusing enough for everybody.
>>
>
> It's even more confusing in that these selections, primary, secondary, and
> clipboard, are merely the standard, built-in selections. An application
> can define any number of selection types for data transfer. These user-defined
> selections can only be exploited if another application knows about them.
> The standard, built-in selections, however, are understood by most other
> applications.
>
> The X Window selections are fundamentally different from the "clipboard"
> that is found in MS Windows, but most people tend to view these two different
> systems as being identical.
>

Here is a wonderful video that covers all four clipboards:

http://www.cs.man.ac.uk/~chl/Secondary-Selection.mp4

Subject: Re: What is the XA_SECONDARY clipboard?
From: Javier
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Date: Tue, 7 Apr 2020 12:49 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 07 Apr 2020 07:49:31 -0500
From: javier@invalid.invalid (Javier)
Subject: Re: What is the XA_SECONDARY clipboard?
Newsgroups: comp.os.linux.misc,comp.os.linux.x
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us> <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk> <r6gne1$vq1$1@dont-email.me>
Message-ID: <MdydnVCAOdtG6xHDnZ2dnUU78Y3NnZ2d@brightview.co.uk>
Date: Tue, 07 Apr 2020 07:49:31 -0500
Lines: 37
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-xSVhdjOxum2wbjyG6UdrgqWeIKBM3wXOgP+ODEIHv1DFwUZFDkUdVpn8mvf4TqdM5HZ1WbYYtTpqGTw!3RrT/qjDGmUafJuKUt/gg5hvDPWBNNV5oG1VVbFz4y5nOvbcmFOl16Q8n4Em9QZrxSti2ylkGsoU!G8ggnY+DzNkhjNMDPAbfWuyaaRQ=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2619
View all headers

In comp.os.linux.x Rich <rich@example.invalid> wrote:
> In comp.os.linux.misc Javier <javier@invalid.invalid> wrote:
>> PS: X also has CUT_BUFFER0 to CUT_BUFFER7, but I have never
>> understood what they are. I would be grateful if somebody can
>> explain what they are for.
>
> They are defined by the ICCCM here:
>
> https://tronche.com/gui/x/icccm/sec-3.html#s-3
>
> They are basically what the ms-windows clipboard is (except there are
> eight of them instead of just one). Specific server side storage areas
> for data that can later be retreived.
>
>
> Selections are the more powerful system, defined here:
>
> https://tronche.com/gui/x/icccm/sec-2.html#s-2
>
> They are real inter-client communication channels.
>
> And note, X allows you to have as many selections as you want (although
> few programs ever used more than the three basic selections that the
> ICCCM requires always be provided):
>
> "Note that there can be an arbitrary number of selections (each
> named by an atom) and that they are global to the server."

Thanks for the reference. From the text it looks like the CUT_BUFFERs
are stored in the server, so they are persistent even after the client
programs are closed. I guess this has the cost in bandwidth when
placing data in them (unlike the selections, which only use bandwidth
when the selection is requested by some other program).

There is something I still don't understand: why the does the document
ask for the CUT_BUFFER 0-7 numbers to be rotated when using them?
AFAIK that rotation doesn't happen with the selections.

Subject: Re: What is the XA_SECONDARY clipboard?
From: Rich
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: A noiseless patient Spider
Date: Tue, 7 Apr 2020 15:12 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Tue, 7 Apr 2020 15:12:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 46
Sender: <rellis@d820.dp100.com>
Message-ID: <r6i59p$q9o$1@dont-email.me>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us> <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk> <r6gne1$vq1$1@dont-email.me> <MdydnVCAOdtG6xHDnZ2dnUU78Y3NnZ2d@brightview.co.uk>
Injection-Date: Tue, 7 Apr 2020 15:12:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="eefdbfe264c1dbb8b2a487e871238130";
logging-data="26936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+t/Xva7Lbnow/yiBuNSWIx"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:qjYmJLt2VHAZwsYQgYF3K6e8t8k=
View all headers

In comp.os.linux.misc Javier <javier@invalid.invalid> wrote:
> In comp.os.linux.x Rich <rich@example.invalid> wrote:
>> In comp.os.linux.misc Javier <javier@invalid.invalid> wrote:
>>> PS: X also has CUT_BUFFER0 to CUT_BUFFER7, but I have never
>>> understood what they are. I would be grateful if somebody can
>>> explain what they are for.
>>
>> They are defined by the ICCCM here:
>>
>> https://tronche.com/gui/x/icccm/sec-3.html#s-3
>>
>> They are basically what the ms-windows clipboard is (except there are
>> eight of them instead of just one). Specific server side storage areas
>> for data that can later be retreived.
>>
>>
>> Selections are the more powerful system, defined here:
>>
>> https://tronche.com/gui/x/icccm/sec-2.html#s-2
>>
>> They are real inter-client communication channels.
>>
>> And note, X allows you to have as many selections as you want (although
>> few programs ever used more than the three basic selections that the
>> ICCCM requires always be provided):
>>
>> "Note that there can be an arbitrary number of selections (each
>> named by an atom) and that they are global to the server."
>
> Thanks for the reference. From the text it looks like the CUT_BUFFERs
> are stored in the server, so they are persistent even after the client
> programs are closed. I guess this has the cost in bandwidth when
> placing data in them (unlike the selections, which only use bandwidth
> when the selection is requested by some other program).

Also a cost in X server memory usage (arguably a bigger concern in the
early days of much smaller memory systems).

> There is something I still don't understand: why the does the document
> ask for the CUT_BUFFER 0-7 numbers to be rotated when using them?
> AFAIK that rotation doesn't happen with the selections.

From the looks of it, they were trying to use the eight buffers as a
form of LIFO stack so that not only could you paste the last thing you
cut, but you could also ask to go "back in time" and paste the last
eight things you had cut.

Subject: Re: What is the XA_SECONDARY clipboard?
From: Javier
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Date: Tue, 7 Apr 2020 20:13 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 07 Apr 2020 15:13:36 -0500
From: javier@invalid.invalid (Javier)
Subject: Re: What is the XA_SECONDARY clipboard?
Newsgroups: comp.os.linux.misc,comp.os.linux.x
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us> <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk> <r6gne1$vq1$1@dont-email.me> <MdydnVCAOdtG6xHDnZ2dnUU78Y3NnZ2d@brightview.co.uk> <r6i59p$q9o$1@dont-email.me>
Message-ID: <dP6dnZK4jZJtQxHDnZ2dnUU78SnNnZ2d@brightview.co.uk>
Date: Tue, 07 Apr 2020 15:13:36 -0500
Lines: 19
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-mqiYNP+05i1lKMVS9e5wvbhJW2yPppz//KLfs5hqn735TeOUAG5ARsN9ulVYH5NA/q/IfNfynSk/4LW!V4BhbMHwsg5hfKVuj9hvPwUzdzVJHe29wzP8F5UhuTbL6g1g6bZy74A70XiA0/kdjmB0EamoOz0K!fhomeXQQcZi2qkd8VgPe3mPZZAY=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1923
View all headers

In comp.os.linux.x Rich <rich@example.invalid> wrote:
>>> They are defined by the ICCCM here:
>>>
>>> https://tronche.com/gui/x/icccm/sec-3.html#s-3
>>>
>
>> There is something I still don't understand: why the does the document
>> ask for the CUT_BUFFER 0-7 numbers to be rotated when using them?
>> AFAIK that rotation doesn't happen with the selections.
>
> From the looks of it, they were trying to use the eight buffers as a
> form of LIFO stack so that not only could you paste the last thing you
> cut, but you could also ask to go "back in time" and paste the last
> eight things you had cut.

It looks like that was the original intention of the X designers, but
I think application designers didn't implement that rotation. XTerm
uses CUT_BUFFER0, CUT_BUFFER1, but the man page says nothing about
rotating them.

Subject: Re: What is the XA_SECONDARY clipboard?
From: Eli the Bearded
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: Some absurd concept
Date: Mon, 13 Apr 2020 00:49 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!panix!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Mon, 13 Apr 2020 00:49:25 +0000 (UTC)
Organization: Some absurd concept
Lines: 22
Message-ID: <eli$2004122048@qaz.wtf>
References: <o9n8a5$fd6$1@dont-email.me> <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk> <r6gpl7016tt@news4.newsguy.com> <r6h09c$asq$3@dont-email.me>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader2.panix.com 1586738965 25076 166.84.1.5 (13 Apr 2020 00:49:25 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Mon, 13 Apr 2020 00:49:25 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
View all headers

In comp.os.linux.x, T <T@invalid.invalid> wrote:
> Here is a wonderful video that covers all four clipboards:
>
> http://www.cs.man.ac.uk/~chl/Secondary-Selection.mp4

That video is embedded in this page:
http://www.cs.man.ac.uk/~lindsec/secondary-selection.html

The end of which has "Feedback" section containing:

Clearly, we need some place where people can express their opinions and
experiences with trying out my system. Initially, I propose we meet in
the Usenet Group comp.os.linux.x, but I am also on the lookout for some
web forum that could host discussions, so watch this space!

So, Charles Lindsey are you reading this? Maybe you could release the
source code of your gtk changes instead of only providing a set of
shared libs for Ubuntu 14.04.

Elijah
------
the video would have been better with visible mouse/keyboard annotations

Subject: Re: What is the XA_SECONDARY clipboard?
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: terraraq NNTP server
Date: Mon, 13 Apr 2020 08:18 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.terraraq.uk!.POSTED.mantic.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Mon, 13 Apr 2020 09:18:42 +0100
Organization: terraraq NNTP server
Message-ID: <878siz3ijh.fsf@LkoBDZeT.terraraq.uk>
References: <o9n8a5$fd6$1@dont-email.me>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
<r6gpl7016tt@news4.newsguy.com> <r6h09c$asq$3@dont-email.me>
<eli$2004122048@qaz.wtf>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="mantic.terraraq.uk:46.235.226.39";
logging-data="15345"; mail-complaints-to="news@terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:kWFhOUYNV91mwyCAAh0lz9blNNU=
View all headers

Eli the Bearded <*@eli.users.panix.com> writes:
> That video is embedded in this page:
> http://www.cs.man.ac.uk/~lindsec/secondary-selection.html
>
> The end of which has "Feedback" section containing:
>
> Clearly, we need some place where people can express their opinions and
> experiences with trying out my system. Initially, I propose we meet in
> the Usenet Group comp.os.linux.x, but I am also on the lookout for some
> web forum that could host discussions, so watch this space!
>
> So, Charles Lindsey are you reading this? Maybe you could release the
> source code of your gtk changes instead of only providing a set of
> shared libs for Ubuntu 14.04.

It’s an LGPL’d library, he’s legally required to provide the modified
source, despite the nonsense he’s put in the copyright file inside the
download.

--
https://www.greenend.org.uk/rjk/

Subject: Re: What is the XA_SECONDARY clipboard?
From: Charles Lindsey
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Date: Mon, 13 Apr 2020 18:07 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: chl@clerew.man.ac.uk (Charles Lindsey)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Mon, 13 Apr 2020 19:07:12 +0100
Lines: 45
Message-ID: <hfjo2gFa7t2U1@mid.individual.net>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net tOvLgo9fkNcxSz2H5hxQcQGYiHwG/sc914uOniSBwI7MS13DI=
Cancel-Lock: sha1:sQajPubMLzcQspLL8yAJe+ZuIzQ=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.4.1
In-Reply-To: <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
Content-Language: en-US
View all headers

On 07/04/2020 01:19, Javier wrote:
> In comp.os.linux.misc Eli the Bearded <*@eli.users.panix.com> wrote:
>> In comp.os.linux.misc, T <T@invalid.invalid> wrote:
>>
>> I added a crosspost to comp.os.linux.x. I had also been hoping someone
>> would answer before me, but...
>>
>>> From "man xclip" I see that I have three clipboards:
>> ...
>>> "secondary" or XA_SECONDARY
>>>
>>> I am very familiar with the first two. What is XA_SECONDARY?
>>> And how do I use it?

Well I missed the start of this thread, but I have been pointed at it.

The essential difference between the Primary and Secondary selections, at least
so far as text-like files are concerned, is that when you select a piece of text
(with the intention of copying it, for example), it also moves the insertion
point (I assume you are in some editor), so after copying it you have to go back
and find again where the insertion point used to be, so you can paste it there.
Which is a confounded nuisance.

Twenty years ago, in the days when the Xview toolkit was in vogue, editors made
use of the secondary selection as it was intended. It is still available in the
Motif toolkit, and in the nedit editor, but they made it so difficult to use
that everybody forgot about it. I was still using it on my Sun computer until
four years ago (both in the editor and the terminal); it was the best thing
since sliced bread.

When I started using Ubuntu on 386 (yech!) architectures, I started modifying
GTK to use it properly. My mistake then was to use a 32-bit version of Ubuntu
when all the rest of the world was turning to 64-bit versions, so although I
made my 32-bit version available, I don't think anybody used it. Now I have
moved to 64-bit Ubuntu, I am still running my 32-bit version on it.

So I refer you to http://www.cs.man.ac.uk/~lindsec/secondary-selection.html
where you will find a short video (it was my first attempt at creating such a
video, so excuse its clunkiness) plus a full description of what it is all about.

--
Charles H. Lindsey ---------At my New Home, still doing my own thing-----------
Tel: +44 161 488 1845 Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk Snail: 40 SK8 5BF, U.K.
PGP: 2C15F1A9 Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5

Subject: Re: What is the XA_SECONDARY clipboard?
From: Eli the Bearded
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: Some absurd concept
Date: Mon, 13 Apr 2020 19:51 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!panix!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Mon, 13 Apr 2020 19:51:11 +0000 (UTC)
Organization: Some absurd concept
Lines: 22
Message-ID: <eli$2004131550@qaz.wtf>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us> <pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk> <hfjo2gFa7t2U1@mid.individual.net>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader2.panix.com 1586807471 28271 166.84.1.5 (13 Apr 2020 19:51:11 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Mon, 13 Apr 2020 19:51:11 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
View all headers

In comp.os.linux.x, Charles Lindsey <chl@clerew.man.ac.uk> wrote:
> When I started using Ubuntu on 386 (yech!) architectures, I started modifying
> GTK to use it properly. My mistake then was to use a 32-bit version of Ubuntu
> when all the rest of the world was turning to 64-bit versions, so although I
> made my 32-bit version available, I don't think anybody used it. Now I have
> moved to 64-bit Ubuntu, I am still running my 32-bit version on it.

You don't seem to have made the source code for your changes public,
which hinders other people using it. I'm not going to download random
library files and use them, but source code I might.

> So I refer you to http://www.cs.man.ac.uk/~lindsec/secondary-selection.html
> where you will find a short video (it was my first attempt at creating such a
> video, so excuse its clunkiness) plus a full description of what it is
> all about.

Yes, the video was posted in this thread and from that I found your
webpage about it.

Elijah
------
cannot recall the last time he used a 386

Subject: Re: What is the XA_SECONDARY clipboard?
From: Charles Lindsey
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Date: Tue, 14 Apr 2020 20:00 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.nobody.at!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: chl@clerew.man.ac.uk (Charles Lindsey)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Tue, 14 Apr 2020 21:00:01 +0100
Lines: 51
Message-ID: <hfmj21Fsqu2U1@mid.individual.net>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
<hfjo2gFa7t2U1@mid.individual.net> <eli$2004131550@qaz.wtf>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net Knazu45H/6Y474B/8baq6wRREX8JxZaP7K04uZOnJDupoUg+4=
Cancel-Lock: sha1:N4MHrDTy+Yr+Lb4BtcHfa/URGhE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.4.1
In-Reply-To: <eli$2004131550@qaz.wtf>
Content-Language: en-US
View all headers

On 13/04/2020 20:51, Eli the Bearded wrote:
> In comp.os.linux.x, Charles Lindsey <chl@clerew.man.ac.uk> wrote:
>> When I started using Ubuntu on 386 (yech!) architectures, I started modifying
>> GTK to use it properly. My mistake then was to use a 32-bit version of Ubuntu
>> when all the rest of the world was turning to 64-bit versions, so although I
>> made my 32-bit version available, I don't think anybody used it. Now I have
>> moved to 64-bit Ubuntu, I am still running my 32-bit version on it.
>
> You don't seem to have made the source code for your changes public,
> which hinders other people using it. I'm not going to download random
> library files and use them, but source code I might.

No, and my webpage explains why. The code is full of dreadful hacks and of
itself is not the basis for an orderly extension to GTK, which would need to be
based on a much later version of GTK. So I did not want to create a fork which
people might expand in all sorts of ways and which would have no future.

I put out the code just so people could try it and, if they liked it, could put
pressure on the GTK developers to take it seriously. It failed in that regard
because nobody nowadays uses 32-bit Linux on desktops. Somewhere on my list of
Things to Do is to recompile it for 64-bit Linux, but even that would not be
easy because you will always find places where you cast a pointer to some size
of integer, and you will find that more recent versions of gcc add extra code to
detect "Stack Smashing", which is fine but exceedingly difficult to debug if it
catches you out,

Moreover the inside of gtk is a dog's dinner, and the developers seem more
intent on rushing ahead with non-backwards-compatible "improvements" and are now
pushing forward with GTK-4 when the world has hardly absorbed the change from
GTK-2. QT made a much better job of maintaining backwards compatibility, but the
world seems to have decided that GTK is the future :-(.

On top of that, the secondary selection, and the ability to create additional
selections (which is very useful if used wisely) is an X-Windows feature. It
does not map well onto Microsoft Windows or onto Wayland.
>
>> So I refer you to http://www.cs.man.ac.uk/~lindsec/secondary-selection.html
>> where you will find a short video (it was my first attempt at creating such a
>> video, so excuse its clunkiness) plus a full description of what it is
>> all about.

Look at my documentation of how I borrowed the Motif implementation of using the
secondary selection; it is, and has to be, pretty complicated if you want it to
work between different windows running different applications, and all running
under different Window Managers.

--
Charles H. Lindsey ---------At my New Home, still doing my own thing-----------
Tel: +44 161 488 1845 Web: http://www.cs.man.ac.uk/~chl
Email: chl@clerew.man.ac.uk Snail: 40 SK8 5BF, U.K.
PGP: 2C15F1A9 Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5

Subject: Re: What is the XA_SECONDARY clipboard?
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: terraraq NNTP server
Date: Tue, 14 Apr 2020 21:13 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.terraraq.uk!.POSTED.mantic.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Tue, 14 Apr 2020 22:13:22 +0100
Organization: terraraq NNTP server
Message-ID: <87zhbd22kt.fsf@LkoBDZeT.terraraq.uk>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
<hfjo2gFa7t2U1@mid.individual.net> <eli$2004131550@qaz.wtf>
<hfmj21Fsqu2U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="mantic.terraraq.uk:46.235.226.39";
logging-data="29710"; mail-complaints-to="news@terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:I+9G1a+Sd4TLZavs0p5SBswRKFU=
View all headers

Charles Lindsey <chl@clerew.man.ac.uk> writes:
> On 13/04/2020 20:51, Eli the Bearded wrote:
>> In comp.os.linux.x, Charles Lindsey <chl@clerew.man.ac.uk> wrote:

>>> When I started using Ubuntu on 386 (yech!) architectures, I started
>>> modifying GTK to use it properly. My mistake then was to use a
>>> 32-bit version of Ubuntu when all the rest of the world was turning
>>> to 64-bit versions, so although I made my 32-bit version available,
>>> I don't think anybody used it. Now I have moved to 64-bit Ubuntu, I
>>> am still running my 32-bit version on it.
>>
>> You don't seem to have made the source code for your changes public,
>> which hinders other people using it. I'm not going to download random
>> library files and use them, but source code I might.
>
> No, and my webpage explains why. The code is full of dreadful hacks
> and of itself is not the basis for an orderly extension to GTK, which
> would need to be based on a much later version of GTK. So I did not
> want to create a fork which people might expand in all sorts of ways
> and which would have no future.

It’s not your decision to make. GTK is LGPL, of which clause 3 requires
that if you distribute object code, you distribute source code too. If
you don’t want to distribute the source, you don’t get to distribute the
object code.

--
https://www.greenend.org.uk/rjk/

Subject: Re: What is the XA_SECONDARY clipboard?
From: Andreas Kohlbach
Newsgroups: comp.os.linux.misc, comp.os.linux.x
Organization: https://news-commentaries.blogspot.com/
Date: Wed, 15 Apr 2020 12:16 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.albasani.net!.POSTED!not-for-mail
From: ank@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.os.linux.misc,comp.os.linux.x
Subject: Re: What is the XA_SECONDARY clipboard?
Date: Wed, 15 Apr 2020 08:16:07 -0400
Organization: https://news-commentaries.blogspot.com/
Lines: 14
Message-ID: <87zhbdndvc.fsf@usenet.ankman.de>
References: <o9n8a5$fd6$1@dont-email.me> <eli$1703081723@qz.little-neck.ny.us>
<pOidnXhPLuW_WhbDnZ2dnUU78TXNnZ2d@brightview.co.uk>
<hfjo2gFa7t2U1@mid.individual.net> <eli$2004131550@qaz.wtf>
<hfmj21Fsqu2U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: news.albasani.net C5Qm53SN5r7XKTLJ608RxbSMC1qqecERWQ4XQ2Zv8Zz/uRj4I7PXjzm/44wxg+QpIUBMU0HY+3M1JSfmjv8oFvpEMiSebgTsmkNqdxOFWoiuH7iiU4u8NpmUr5hLQFGJ
NNTP-Posting-Date: Wed, 15 Apr 2020 12:16:15 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="Ndd8gKrVMLCPn/rsgnf9I+x7toHMUEpOykcUlzPBzO1Ed6Ww9WX6IjHAsebFtbKgy7zyjUvJjtUIQSXRXeHFIp9A+WurhHhIH06WLvjrb5Dg8sT/q9oembbM4eL70t2C"; mail-complaints-to="abuse@albasani.net"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
X-No-Archive: Yes
X-Face: '#R~-oJz-_!iXhczPJ;=w1(`5-uQ2$0qHB7KKDV,]VoAC!P?swaa#m|eB<DkOt*XH=~9C[g S^w)b,)1q,{P\7Z3H,N(^m.YKuYM//B{X:PvbDk.|:g:$wVr*3*)[K6F+k\z-s32+oB]YJPy11wuGGz'bQAk~1.b1[;M{^A2@bboIENBB:Wd:<Fm~r7OuiJA1g}7KC-T'>Du+
Cancel-Lock: sha1:MpmUgUZFZHdFsxMaRjXoely0AqA= sha1:d982h/UEwDajZhIXAAwThX6ppwk=
X-Face-What-Is-It: Capture Bee from Galaga
View all headers

On Tue, 14 Apr 2020 21:00:01 +0100, Charles Lindsey wrote:
>
> I put out the code just so people could try it and, if they liked it,
> could put pressure on the GTK developers to take it seriously. It
> failed in that regard because nobody nowadays uses 32-bit Linux on
> desktops.

I run 32-bit on a desktop (laptop actually) and run into more and more
problems. Cannot remember clearly, but a couple of GTK issues were among
them.
--
Andreas

PGP fingerprint 952B0A9F12C2FD6C9F7E68DAA9C2EA89D1A370E0

1

rocksolid light 0.9.8
clearnet tor