From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: klebsiella Newsgroups: gmane.emacs.help Subject: Re: send selection or current line to Terminal/iTerm Date: Fri, 13 Jun 2014 23:52:34 -0700 (PDT) Message-ID: <1402728754759-324525.post@n5.nabble.com> References: <1402586029056-324374.post@n5.nabble.com> <87r42tvpkr.fsf@debian.uxu> <87k38lvp9r.fsf@debian.uxu> <87d2edvnog.fsf@debian.uxu> <1402609430389-324400.post@n5.nabble.com> <1402666776993-324448.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1402728785 8545 80.91.229.3 (14 Jun 2014 06:53:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2014 06:53:05 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 14 08:52:59 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 1Wvhpj-00079P-2J for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 08:52:59 +0200 Original-Received: from localhost ([::1]:34370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wvhpi-0006Tt-I8 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 02:52:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvhpU-0006To-NM for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 02:52:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvhpP-0007dn-Jb for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 02:52:44 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:60194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvhpP-0007bb-E8 for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 02:52:39 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WvhpK-0001c7-Og for Help-gnu-emacs@gnu.org; Fri, 13 Jun 2014 23:52:34 -0700 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.139.236.26 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:98238 Archived-At: Hi John, It works like a charm ... very efficient, Though, one small improvement will be to send the whole current line, instead of the symbol only, when no region is selected. - For instance, the following will fail if x is not defined unless the whole line is selected x <- c(1:3) ;; in an R terminal - This also will fail when sending to a shell instance on iterm ls -laih Also, but very minor, would be to strip/skip empty lines and eventually move cursor to the next line of code (but this is really not very important) All best and thanks again for the very good job K. -- View this message in context: http://emacs.1067599.n5.nabble.com/send-selection-or-current-line-to-Terminal-iTerm-tp324145p324525.html Sent from the Emacs - Help mailing list archive at Nabble.com.