From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: send selection or current line to Terminal/iTerm Date: Sat, 14 Jun 2014 19:59:29 +0100 Message-ID: <87zjhfxqpa.fsf@robertthorpeconsulting.com> References: <1402758583363-324553.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402772408 10590 80.91.229.3 (14 Jun 2014 19:00:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2014 19:00:08 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: klebsiella Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 14 21:00:01 2014 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 1WvtBG-0000rV-Td for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 20:59:59 +0200 Original-Received: from localhost ([::1]:36422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvtBG-0007BL-JD for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 14:59:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvtAz-00074z-PJ for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:59:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvtAp-0005U9-S2 for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:59:41 -0400 Original-Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:59855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvtAp-0005Tt-Le for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:59:31 -0400 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp02.blacknight.com (Postfix) with ESMTP id 48E1C98338 for ; Sat, 14 Jun 2014 18:56:52 +0000 (UTC) Original-Received: (qmail 25914 invoked from network); 14 Jun 2014 18:59:29 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[93.107.191.211]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 14 Jun 2014 18:59:29 -0000 In-Reply-To: <1402758583363-324553.post@n5.nabble.com> (message from klebsiella on Sat, 14 Jun 2014 08:09:43 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.8 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:98267 Archived-At: klebsiella writes: > Dear Robert, > > Paste is working fine. The idea of sending the current line or selection to > the terminal allows Ah, I see now. I had a look at the elisp that John Mastro wrote. It may be better to use interprogram cut to move data from Emacs to the clipboard, then get the Applescript to paste it in. I don't know if osascript can take symbols and non-ascii characters on it's command line. If it can then it'll work fine the way you have it, if not then it could be a problem. (I don't know if Applescript can access the clipboard, if not then you don't have a choice). BR, Robert Thorpe