From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: clipboard cut/paste problem Date: Mon, 2 May 2005 19:05:51 +0200 Message-ID: References: <1114995583.410098.124540@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115056205 32537 80.91.229.2 (2 May 2005 17:50:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 May 2005 17:50:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 02 19:50:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSeyr-0006eC-IU for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2005 19:45:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSf5o-0007hh-0c for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2005 13:52:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSeOB-00028l-J2 for help-gnu-emacs@gnu.org; Mon, 02 May 2005 13:07:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSeO8-00027a-RP for help-gnu-emacs@gnu.org; Mon, 02 May 2005 13:07:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSeO8-00024n-8X for help-gnu-emacs@gnu.org; Mon, 02 May 2005 13:07:20 -0400 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DSeRA-00017B-LZ for help-gnu-emacs@gnu.org; Mon, 02 May 2005 13:10:28 -0400 Original-Received: from [84.245.189.228] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #282) id 1DSeMg-0006dt-00; Mon, 02 May 2005 19:05:50 +0200 In-Reply-To: <1114995583.410098.124540@z14g2000cwz.googlegroups.com> Original-To: "plaut" X-Mailer: Apple Mail (2.622) X-Sender: Peter_Dyballa@web.de 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:26174 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26174 Am 02.05.2005 um 02:59 schrieb plaut: > I'm having a problem getting emacs (21.4.1 under Linux) to import text > from other applications via cut/paste. I have the following in my > .emacs: > > (setq-default x-select-enable-clipboard t) You shouldn't do that! By this means everything you kill in GNU Emacs is put into the X clipboard and another copy is put into the primary selection. This is pollution. > (setq interprogram-paste-function 'x-cut-buffer-or-selection-value) > > Any suggestions? Deliberately copy something into the clipboard that this gets shared among all X clients! Most of what you kill is obviously scrap, otherwise you wouldn't kill it, would you? Besides there are in GNU Emacs functions like clipboard-kill-region or clipboard-kill-ring-save. And check mouse-insert-selection! This is what I use to import something into GNU Emacs. And what about x-get-selection/x-get-cut-buffer? -- Greetings Pete