Re: Back to copy/paste.
Re: Back to copy/paste.
- Subject: Re: Back to copy/paste.
- From: Nathan <email@hidden>
- Date: Thu, 17 Apr 2008 22:28:59 -0600
On Thu, Apr 17, 2008 at 4:43 PM, Harald Hanche-Olsen
<email@hidden> wrote:
> First, a bit of terminology: I suggest sticking to these terms
> consistently throughout:
>
> - the pasteboard (used to be called the "cocoa clipboard" or "OS X
> clipboard"): This is the name used in the pbcopy, pbpaste manual
> pages and is much harder to confuse with the X11 clipboard
> selection.
>
> - the (X11) primary selection
>
> - the (X11) clipboard selection
Sounds good to me.
> Now, to the "Current interaction between clipboards" section:
>
> > when X11 gains focus: The cocoa clipboard is copied into the primary
> > AND clipboard selection;
>
> This is confusing: You just finished explaining that the X11
> selections are POINTERS, not COPIES. So copying something to these
> non-copies is nonsensical. Surely, what must happen is that some X
> client claims ownership of the primary and clipboard selections?
> (I presume that client is quartz-wm, though xlsclients does not list
> quartz-wm as a client. Hidden by magic?)
Please remember that this is a wiki page and that anyone who creates
an x.org account can edit it. It appears both Ben Byer and Adam
Kramer made additions to the page between the time that I created it
and you got to it. That particular sentence appears to have been
added by Adam if I'm reading the diffs correctly.
I agree with you. That doesn't make much sense at all. I changed it to:
* when X11 gains focus: ''The X11 primary selection and X11
clipboard selection are acquired by the OS X pasteboard''
* paste ''primary selection'': ''Pastes what the X11 primary
selection points to (the OS X pasteboard)''
* paste ''clipboard selection'': ''Pastes what the X11 clipboard
selection points to (the OS X pasteboard)''
Now, is that actually correct? I'm asking because I don't really
know. I left all the various "current" actions blank initially, and
they were each filled out by others.
> (I am confused by the phrase "when OS X gains focus", since X11 also
> runs under OS X. Isn't it better to say "when X11 loses focus"?)
That's an excellent point. I felt like there was a better way to say
that, but that particular way didn't occur to me.
> More seriously, my experiments indicate that the description of what
> actually happens is quite wrong. Here is what I get from extensive
> experimentation.
>
> - No matter who has focus, whenever text is copied to the pasteboard,
> that text also becomes the clipboard selection.
>
> - Whenever X11 gains focus, the pastboard contents becomes the primary
> selection. Nothing happens to the clipboard selection.
Oh? If that's true, then that wiki section I quoted above is wrong.
> - Whenever X11 loses focus, if the clipboard selection has changed
> then it is copied to the pasteboard.
>
> - However, if you have EVER used Edit -> Copy in X11, this action will
> no longer happen (until you quit and restart X11).
>
> Below are some details of my experimental setup (think of this as my
> "materials and methods" section if you're scientifically inclined).
>
> [snip]
Sounds like you've gone quite a bit deeper than most into the details.
Like I said in my first post, the wiki page is for us all to document
this. Go ahead and update it, please! I've started making a few of
the changes, but I'm too tired for much more detailed thinking
tonight. I don't claim any ownership of the page or anything silly
like that, so don't be shy. Just update it and announce your changes
to the list to give smarter people than me a chance to peer-review
you. :-)
~ Nathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden