From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: send selection or current line to Terminal/iTerm Date: Thu, 12 Jun 2014 17:55:27 -0700 Message-ID: References: <1402261104327-324145.post@n5.nabble.com> <1402586029056-324374.post@n5.nabble.com> <87r42tvpkr.fsf@debian.uxu> <87k38lvp9r.fsf@debian.uxu> <87d2edvnog.fsf@debian.uxu> <1402609430389-324400.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1402620968 17019 80.91.229.3 (13 Jun 2014 00:56:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 00:56:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 02:56: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 1WvFmi-0004xl-Pf for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 02:56:00 +0200 Original-Received: from localhost ([::1]:56181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvFmi-0002pL-D4 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 20:56:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvFmY-0002p5-3r for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 20:55:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvFmX-0004sv-6r for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 20:55:50 -0400 Original-Received: from mail-oa0-x22d.google.com ([2607:f8b0:4003:c02::22d]:33419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvFmX-0004sn-05 for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 20:55:49 -0400 Original-Received: by mail-oa0-f45.google.com with SMTP id o6so2122803oag.32 for ; Thu, 12 Jun 2014 17:55:48 -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 :content-type; bh=NN76cp07Pi8Z+tMmjkpCt6ZhxpQCkzjkFFrfEQCLsFo=; b=g5yndJdk8M9kvtf/yi//eiqleB9tzRld+3eHcBTZcSk9KzV6faZhFpCZLrdPwB9zcV oGGbuGckV4TbqAm+zrvFI/+QAi66B+Vd2gfaxtk/wVS1dE4/BQW29qri8TT+F/Jk/98Z sIX0FYQclF0QfQZ7XauZMr7PNy2Dl83UD74ttxLoZ9NG8+Do6mYuA/i/DqbYmm3Mqpl7 js3mjrH8Ul1THNQnJurjgGuo+LQqzA1MwT3NIiQXZrT/2EOgoOqVuzXvMdP5w/Q+SKcB 9gI4rjqweAVnrDSGOWdGqJRy+8R5gL9oHtOvaJzj9VJz920ieTWlO4g+RAmbTLPDsFw+ FYZw== X-Received: by 10.60.52.207 with SMTP id v15mr50115784oeo.19.1402620948062; Thu, 12 Jun 2014 17:55:48 -0700 (PDT) Original-Received: by 10.76.166.234 with HTTP; Thu, 12 Jun 2014 17:55:27 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:98196 Archived-At: Hi klebsiella, John Mastro wrote: > This is totally untested (sorry, still not around a Mac), but I think > something along these lines should work. Assuming that SublimeText > extension works anyway. By the way, if the code I posted does do approximately want you want, I'd be happy to improve it a bit for you (e.g. handling escaping, as the SublimeText version seems to). If you try it, let me know if/how it works for you. - John