help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CUA and other applications


From: David Golden
Subject: Re: CUA and other applications
Date: Thu, 20 Mar 2008 03:12:25 +0000
User-agent: KNode/0.10.5

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









reply via email to

[Prev in Thread] Current Thread [Next in Thread]