From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Coda Newsgroups: gmane.emacs.help Subject: Re: w32-get-clipboard-data Date: Thu, 27 Aug 2015 01:13:41 -0700 (PDT) Message-ID: <66bd45fc-c351-4faf-9cac-b943b041398b@googlegroups.com> References: <0f6a0212-3e01-4a6d-8b6d-6361621f4dc1@googlegroups.com> <97e2fe15-cfa3-4b25-9a04-1777b39f1c7b@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1440663331 5580 80.91.229.3 (27 Aug 2015 08:15:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2015 08:15:31 +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 Aug 27 10:15:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUsLC-000514-Dn for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Aug 2015 10:15:22 +0200 Original-Received: from localhost ([::1]:60194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUsLB-0002JB-QV for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Aug 2015 04:15:21 -0400 X-Received: by 10.129.159.69 with SMTP id w66mr2493117ywg.31.1440663222546; Thu, 27 Aug 2015 01:13:42 -0700 (PDT) X-Received: by 10.50.50.200 with SMTP id e8mr10980igo.17.1440663222515; Thu, 27 Aug 2015 01:13:42 -0700 (PDT) Original-Path: usenet.stanford.edu!s36no1705143qgs.1!news-out.google.com!f6ni6656igi.0!nntp.google.com!se8no11153932igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <97e2fe15-cfa3-4b25-9a04-1777b39f1c7b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.188.251.108; posting-account=m04FzgoAAACE321zIBttJ0LOy_kNjzcN Original-NNTP-Posting-Host: 195.188.251.108 User-Agent: G2/1.0 Injection-Date: Thu, 27 Aug 2015 08:13:42 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:214576 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106860 Archived-At: On Tuesday, 25 August 2015 15:54:26 UTC+1, Jason Rumney wrote: > On Tuesday, 25 August 2015 18:44:07 UTC+8, Stephen Coda wrote: > > For me, w32-get-clipboard-data > > always returns null. > > w32-get-clipboard-data returns nil if Emacs owns the clipboard, so that the internal yank implementation will be used instead, as that will preserve text properties in addition to the raw text. > > If you copy some text to the clipboard outside of Emacs, does w32-get-clipboard-data return the expected result then? In what way is copy/paste not working for you in Emacs? Hi Jason, w32-get-clipboard-data does return nil. Copy and Paste work only inside of emacs, but if I copy text from another app, say notepad, I can't paste it into emacs. Cheers, Steve