From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Golden Newsgroups: gmane.emacs.help Subject: Re: CUA and other applications Date: Thu, 20 Mar 2008 03:12:25 +0000 Organization: Orbital Laser Death Rays R Us Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1205988104 2480 80.91.229.12 (20 Mar 2008 04:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2008 04:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 05:42:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JcCbT-0007E2-KN for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 05:42:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcCat-0002zG-6I for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 00:41:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!easynet-quince!easynet.net!feed4.jnfs.ja.net!jnfs.ja.net!feeder.news.heanet.ie!news.indigo.ie!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 User-Agent: KNode/0.10.5 Original-NNTP-Posting-Host: 86.43.162.68 Original-X-Complaints-To: abuse@eircom.net Original-X-Trace: news.indigo.ie 1205982745 86.43.162.68 (Thu, 20 Mar 2008 03:12:25 GMT) Original-NNTP-Posting-Date: Thu, 20 Mar 2008 03:12:25 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:157190 X-Mailman-Approved-At: Thu, 20 Mar 2008 00:41:00 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52561 Archived-At: 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