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: Sat, 14 Jun 2014 11:09:07 -0700 (PDT) Message-ID: <1402769347557-324572.post@n5.nabble.com> References: <87k38lvp9r.fsf@debian.uxu> <87d2edvnog.fsf@debian.uxu> <1402609430389-324400.post@n5.nabble.com> <1402666776993-324448.post@n5.nabble.com> <1402728754759-324525.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 1402769381 8707 80.91.229.3 (14 Jun 2014 18:09:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2014 18:09:41 +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 20:09:34 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 1WvsOS-0003aO-7s for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 20:09:32 +0200 Original-Received: from localhost ([::1]:36270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvsOP-0004JM-Lc for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 14:09:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvsOA-0004Iz-As for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:09:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvsO4-00046B-VS for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:09:14 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:46587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvsO4-00045g-Qf for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:09:08 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WvsO3-00059S-IN for Help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 11:09:07 -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:98264 Archived-At: Dear John, Many thanks again. One error was produced (I believe this will be the last ;)), when the assignment contains quotes. i.e the following will produce in error in R: file <- "myFile.txt" Error: > file <- \"myFile.txt\" Error: unexpected input in "file <- \" I believe that "iterm-escape-string" is replacing the quote (") by (\"), which is sent to iTerm then. Also, is it important to have the first replacement in "iterm-escape-string" (replace-regexp-in-string "\\\\" "\\\\" str nil t). I find it useless myself, unless if I am missing something, I do believe that it can be useful for others but maybe additional tests have to be done. I will be happy to report bugs in such a case. All best -- View this message in context: http://emacs.1067599.n5.nabble.com/send-selection-or-current-line-to-Terminal-iTerm-tp324145p324572.html Sent from the Emacs - Help mailing list archive at Nabble.com.