• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: copy and paste between X11 and native apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copy and paste between X11 and native apps


  • Subject: Re: copy and paste between X11 and native apps
  • From: John Davidorff Pell <email@hidden>
  • Date: Mon, 11 Oct 2004 19:15:59 -0700

You are entirely correct, *neither* PRIMARY or SECONDARY are the clipboard. You'll notice the same behaviour you just described in any GTK or QT app, because the CLIPBOARD has nothing to do with current selection.

the Aqua clipboard is sync'd with the X clipboard perfectly. If you copy something in [X]Emacs (or any GTK/QT/"good" app) then it goes into the clipboard. This has nothing to do with selection. When you select something, it goes into PRIMARY (or SECONDARY). This has nothing to do with the clipboard.

This is obviously confusing, annoying, and ridiculous... but its build into X. It has nothing to do with Aqua at all, believe it or not. (The fact that Aqua and X share the CLIPBOARD makes it confusing, though.)

When you do -C, or select Copy form the Edit menu, X11.app takes whatever is in the PRIMARY buffer, and copies it into the CLIPBOARD. This takes a few seconds (for no good reason) and is the problem that you are seeing.

There are several ways to sync the CLIPBOARD and PRIMARY if that is what you want. there is xcutsel, which gives you convenient buttons for copying CLIPBOARD-to-PRIMARY or PRIMARY-to-CLIPBOARD. This, again, has nothing to do with Aqua, but X's numerous clipboard-like-buffers. You can also try, autocutsel, which tries to do this automatically (and works quite well, actually), but it sometimes messes things up when you explicitly copy something, then select something, and try to get back what you copied... its gone, replaced by what you selected.

If anything is not clear, I'm happy to elaborate. :-)

As you say, what "seems" to be the clipboard in X is not what Aqua view as the clipboard: What seems to be the clipboard in X is not what X views as the clipboard either. If you don't like it, then take it up with the X people... :-(

JP

On 11 Oct 2004, at 18:16, Rich Cook wrote:

Howdie,
What I mean is, that if I use xemacs and copy some text from xemacs, then make a selection in an xterm window, then try to paste into Aqua, the text I copied from xemacs shows up, not the text I selected in the xterm. However, if I option-click in the xterm instead of pasting into Aqua, the text I selected gets pasted, not the text from xemacs.
I honestly don't know PRIMARY from SECONDARY, but what seems to be the "clipboard" in X11 is not what Aqua views as the "clipboard."




--
"... was it a dream where you see yourself standing in sort-of Sun-God robes, on a pyramid, with a thousand naked women screaming and throwing little pickles at you? ... Why am I the only one who has that dream?"


_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to email@hidden


References: 
 >copy and paste between X11 and native apps (From: Young Hyun <email@hidden>)
 >Re: copy and paste between X11 and native apps (From: John Davidorff Pell <email@hidden>)
 >Re: copy and paste between X11 and native apps (From: Ronald Cohen <email@hidden>)
 >Re: copy and paste between X11 and native apps (From: Rich Cook <email@hidden>)
 >Re: copy and paste between X11 and native apps (From: John Davidorff Pell <email@hidden>)

  • Prev by Date: Re: copy and paste between X11 and native apps
  • Next by Date: Re: copy and paste between X11 and native apps
  • Previous by thread: Re: copy and paste between X11 and native apps
  • Next by thread: Re: copy and paste between X11 and native apps
  • Index(es):
    • Date
    • Thread