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: Sat, 14 Jun 2014 11:36:55 -0700 Message-ID: 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> <1402769347557-324572.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 1402771055 27242 80.91.229.3 (14 Jun 2014 18:37:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2014 18:37:35 +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:37:28 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 1WvspU-0004n5-Dm for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 20:37:28 +0200 Original-Received: from localhost ([::1]:36375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvspT-0001XA-VW for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 14:37:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvspJ-0001Wy-Ee for help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:37:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvspI-0006CI-G3 for help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:37:17 -0400 Original-Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:49410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvspI-0006CC-AO for help-gnu-emacs@gnu.org; Sat, 14 Jun 2014 14:37:16 -0400 Original-Received: by mail-ob0-f174.google.com with SMTP id va2so4153562obc.33 for ; Sat, 14 Jun 2014 11:37:15 -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=Y4db9BkuFQ2ocQ8epLvhVq7ijGU0pJx7pf3LjNwA+/c=; b=VhdGoYKrWtDPJmNKFNIH3oIpnZc2rUC1Leq1laPJ/nGcLOysn8kDAEBW+jsTrkbgcR tKHCJFcNNO6j+dvlXyPmcMh1LT4gHw1py7MlS2AH6JSviygDxFkM949IFtSfnPJwFqkt kc/pM6Rj4R9uJZTTJDHdRCXPk+wIUAWRk41D4788LNcn/nxB99KjOtJb41x/zKwmS6et G8nCpMGWXTvJ7keD7aoXGZkEJ4wZsHwZ5s2FUneod9cEc3nZj6xLjPeROOTlkDA1uksf f8bhXjxJV4UdYy+YZ5XOeJPQm8vl6mX46A1UmRIkj+XbHfAj4RaR8BwqgxC2v+MbK4O6 fJMw== X-Received: by 10.182.251.170 with SMTP id zl10mr9985642obc.5.1402771035567; Sat, 14 Jun 2014 11:37:15 -0700 (PDT) Original-Received: by 10.76.166.234 with HTTP; Sat, 14 Jun 2014 11:36:55 -0700 (PDT) In-Reply-To: <1402769347557-324572.post@n5.nabble.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22e 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:98265 Archived-At: Hi, klebsiella wrote: > 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, Does something different happen if you do the same thing from SublimeText? I based the escaping on what the SublimeText plugin does. I can change it, I just want to understand whether what's there now is reproducing what the ST plugin is doing. - John