From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: Simple copy & paste problem Date: Sun, 5 Sep 2010 01:59:04 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1291870952 15322 80.91.229.12 (9 Dec 2010 05:02:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:02:32 +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 Dec 09 06:02:29 2010 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.69) (envelope-from ) id 1PQYeC-0006NF-C5 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:02:28 +0100 Original-Received: from localhost ([127.0.0.1]:37123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYeB-0003UL-QB for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:02:27 -0500 Original-Path: usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1283651944 25180 166.84.1.3 (5 Sep 2010 01:59:04 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 5 Sep 2010 01:59:04 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: usenet.stanford.edu gnu.emacs.help:181149 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:76701 Archived-At: In article , Thierry Volpiatto wrote: >Joel James Adamson writes: ... ... > >You can't do that if emacs and firefox are on differents desktops. >But you can use mouse2 (don't know for OSX). mouse2 -- what does that do? >You can use that also: > >,---- >| (defun yank-from-clipboard () >| (interactive) >| (let ((primary (x-selection 'PRIMARY))) >| (when primary (insert primary)))) >| (global-set-key (kbd "C-c v") 'yank-from-clipboard) >`---- > >Like that nothing is added to emacs kill-ring. > >If you don't mind adding to emacs kill-ring: > >,---- >| ;; (setq interprogram-paste-function 'x-cut-buffer-or-selection-value) >| ;; (setq x-select-enable-primary t) >`---- x-cut-buffer-or-selection-value is an alias for `x-get-selection-value' in `w32-fns.el'. (x-cut-buffer-or-selection-value) Return the value of the current selection. Consult the selection, then the cut buffer. Treat empty strings as if they were unset. What does that mean? If there's a selection, use it, else what's in the cut-buffer? (cut-buffer -- what's that?)> And that x-cut-buffer-or-selection-value -- not in 23.0.0.1. ??? >-- >Thierry Volpiatto >Get my Gnupg key: >gpg --keyserver pgp.mit.edu --recv-keys 59F29997 > > Thanks! David