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:37:35 -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 1335562690 14663 80.91.229.3 (27 Apr 2012 21:38:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2012 21:38:10 +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:38:09 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 1SNsrf-0002Lc-90 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2012 23:38:07 +0200 Original-Received: from localhost ([::1]:48512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNsre-0006mX-Lr for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Apr 2012 17:38:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNsrY-0006mF-GJ for help-gnu-emacs@gnu.org; Fri, 27 Apr 2012 17:38:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNsrW-0007y5-Jk for help-gnu-emacs@gnu.org; Fri, 27 Apr 2012 17:38:00 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:43718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNsrW-0007xP-Ce for help-gnu-emacs@gnu.org; Fri, 27 Apr 2012 17:37:58 -0400 Original-Received: by obbeh20 with SMTP id eh20so1902780obb.0 for ; Fri, 27 Apr 2012 14:37:55 -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=+NqxA/l/wlDnWmgj5Rp0W6xbkG2eKnty1pfIihMutCg=; b=hC0kctiCjf5tA8RBhs5q+YGVQzPlwhUDvmzPsxGXKGWrudRJuwPB1fipacoMH8InD3 hNRpM6B4uy87mX/GaD/OTEwjUH/HOxlc97zaAc7NFBA3F8OQm93CqjOiP3sbHOrvFkem ostCo0djVXyFFOkfd9ntH6YpW6M24I5jr8YhqAL6hZhJAmyhwW6QLW5Mob0ad/aszl/S wf8ZVj8GFl+yos1hRHkBMcUlpn/3w5gHqHXitZm0MWajMF00VCNfvQwuMBGyT3Ib6IX1 4lCG4WIsctlviCeq949TqoioyjngJTHaP8v1nQmI8L8wa0YBbnWB+pRGCqcF0eAqNn2J 6F6A== Original-Received: by 10.60.172.231 with SMTP id bf7mr12416106oec.45.1335562675617; Fri, 27 Apr 2012 14:37:55 -0700 (PDT) Original-Received: by 10.182.109.41 with HTTP; Fri, 27 Apr 2012 14:37:35 -0700 (PDT) In-Reply-To: <12623582.853.1335382697212.JavaMail.geo-discussion-forums@ynma1> 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:84666 Archived-At: On Wed, Apr 25, 2012 at 1:38 PM, wrote: > I'm running the latest pretest from the "Emacs For Mac OS X" website (Ema= cs-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.app= ), the editor's kill ring and the OS's clipboard "communicate" with each ot= her such that I can copy/paste back and forth between Emacs and other appli= cations. > > However, if I launch Emacs in --daemon mode and then fire up `emacsclient= -c`, I find that the client's kill ring does not "communicate" with the OS= 's clipboard, and it's seemingly impossible to copy/paste between Emacs and= other applications. A workaround is to use some intermediate text file, wh= ich I have open in say Emacs and TextEdit, but obviously that's not a great= 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. For 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 sh= ort with google searches, et al. > > Thanks for your help.