unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Golden <david.golden@oceanfree.net>
To: help-gnu-emacs@gnu.org
Subject: Re: CUA and other applications
Date: Thu, 20 Mar 2008 03:12:25 +0000	[thread overview]
Message-ID: <tCkEj.24873$j7.453041@news.indigo.ie> (raw)
In-Reply-To: bd236513-6560-4929-9312-604f94600f64@e23g2000prf.googlegroups.com

orium wrote:

> Hi, everybody.
> 
> I am using emacs 22.1, in GNU/Linux, with gtk.
> 
> I have cua enabled and when I copy something with C-c i can only paste
> it inside emacs, if i want to use the copied text outside emacs I have
> to copy the text through the menu bar->edit.
> 
> Thanks

You might get partial relief by customizing variables
x-select-enable-clipboard and x-select-enable-primary in group killing.

If you e.g. set x-select-enable-clipboard, then you should at least be
able to insert with C-v in other apps (since emacs will actually be
sending to the clipboard).   Unfortunately, if you do set that,
particularly if you use the mouse, you might find the clipboard gets
immediately overwritten a lot, so also set mouse-drag-copy-region to
nil - but that means that highlight/middlebutton insertion, if you use
it, won't work quite as expected. Ho hum...

It's actually technically impossible to get exactly
relevant-standards-compliant clipboard behaviour from an unpatched GNU
Emacs on a modern linux/freedesktop.org desktop:  emacs just handles
the "clipboard" vs. "primary" X selections strangely no matter what you
do. However, there is an experimental patch that expands emacs to
include the standard behaviour as well as all existing possibilities
and renders the customization interface rather more sane - but not sure
it applies cleanly to current CVS, sorry (I should verify/update it I
guess):
http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01403.html









  parent reply	other threads:[~2008-03-20  3:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19 14:17 CUA and other applications orium
2008-03-19 14:56 ` Peter Dyballa
2008-03-19 23:37 ` Kim F. Storm
2008-03-20  3:12 ` David Golden [this message]
2008-03-20  9:48   ` Johan Bockgård
2008-03-20 17:55     ` David Golden
2008-03-20 23:25       ` Johan Bockgård
2008-03-20 23:38         ` David Golden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='tCkEj.24873$j7.453041@news.indigo.ie' \
    --to=david.golden@oceanfree.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).