From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Meurer Newsgroups: gmane.emacs.help Subject: Re: emacsclient and Mac OS's clipboard Date: Fri, 27 Apr 2012 15:38:52 -0600 Message-ID: References: <12623582.853.1335382697212.JavaMail.geo-discussion-forums@ynma1> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335562767 15233 80.91.229.3 (27 Apr 2012 21:39:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2012 21:39:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: michaelsbradleyjr@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 27 23:39:26 2012 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 1SNssr-0003WG-Ut for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2012 23:39:22 +0200 Original-Received: from localhost ([::1]:49297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNssr-0007DP-9q for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2012 17:39:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNssl-0007DI-6P for help-gnu-emacs@gnu.org; Fri, 27 Apr 2012 17:39:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNssj-0008VO-91 for help-gnu-emacs@gnu.org; Fri, 27 Apr 2012 17:39:14 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:59867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNssj-0008GJ-0f for help-gnu-emacs@gnu.org; Fri, 27 Apr 2012 17:39:13 -0400 Original-Received: by mail-ob0-f169.google.com with SMTP id eh20so1904018obb.0 for ; Fri, 27 Apr 2012 14:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=2B9U1Q1EldO70r/MQvjuobPmsKE/OpbgmQRbO01y3OM=; b=GupY7VtVsQlGFkz9pRXzk+lWEIxs4DKX9igQk4RgeQtgjOXo8oYqTE9W2towPG3FSN k6wWUzQC9SJqLTVt+Bbu7soLU0VLvwvoZjlAXFAhIPHwxdpLNn6HEy8n+aX6yXGqpsD8 haJwLQr3+KfTdmfUsFZnpox6z7UnXssHbuDM2A7h1l2jGHc1uS3yjZNdIgKVm1UMx1WY rG1u1jAxvp5xBfbCthZCRpPqnrC34Wx7ycCUv88yF5YoEcZlOfpzxM6ZYpwFGy4KvP11 INJrx3teAFa4awdOlN9RTsB/+R4L1UjEjjAU/cd/CKR/aYF5RkP1rlHXLusI05CiS1BD naiQ== Original-Received: by 10.182.111.39 with SMTP id if7mr16128971obb.55.1335562752200; Fri, 27 Apr 2012 14:39:12 -0700 (PDT) Original-Received: by 10.182.109.41 with HTTP; Fri, 27 Apr 2012 14:38:52 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 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:84667 Archived-At: And by the way, for what it's worth, Emacs's kill ring and the Mac OS X clipboard are not synchronized by default (at least for the terminal version of emacs). That is an option that has to be enabled somewhere. So that's probably the issue here. Aaron Meurer On Fri, Apr 27, 2012 at 3:37 PM, Aaron Meurer wrote: > On Wed, Apr 25, 2012 at 1:38 PM, =A0 wrote: >> I'm running the latest pretest from the "Emacs For Mac OS X" website (Em= acs-pretest-24.0.95-universal-10.6.8.dmg) on Mac OS version 10.7. >> >> If I launch Emacs in a standalone fashion (i.e. double-click on Emacs.ap= p), the editor's kill ring and the OS's clipboard "communicate" with each o= ther such that I can copy/paste back and forth between Emacs and other appl= ications. >> >> However, if I launch Emacs in --daemon mode and then fire up `emacsclien= t -c`, I find that the client's kill ring does not "communicate" with the O= S's clipboard, and it's seemingly impossible to copy/paste between Emacs an= d other applications. A workaround is to use some intermediate text file, w= hich I have open in say Emacs and TextEdit, but obviously that's not a grea= t solution. > > This doesn't really solve the problem, but it is possible to avoid > using intermediate files by using the pbpaste and pbcopy command line > tools and Emacs's build-in command line functions. =A0For example, if > you type M-| pbcopy, it will move the selected text in emacs to the > Mac OS X clipboard. C-u 1 M-! pbpaste will paste. > > Aaron Meurer > >> >> I'm hunting for a fix to this problem (if one exists) but am coming up s= hort with google searches, et al. >> >> Thanks for your help.