From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] escaping of links when result from source code block? Date: Thu, 21 Jul 2011 11:28:05 -0600 Message-ID: <87mxg7zglr.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjx4y-00027i-Rm for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 13:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjx4v-0004t6-VY for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 13:30:32 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:39590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjx4v-0004sl-Mc for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 13:30:29 -0400 Received: by pvc12 with SMTP id 12so1592820pvc.0 for ; Thu, 21 Jul 2011 10:30:28 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode Hi Rainer, The leading "[" makes the string result look like a list to Babel, so it is passed to the `read' function which then escapes the periods in the file name. You can inhibit this interpretation of the string by explicitly informing the code block that you will be returning a string with the ":results scalar" header argument. You may also want to look at the ":results file" header argument. Best -- Eric Rainer M Krug writes: > Hi > > when evaluating the code blocks below, I would expect [[file:./cv.cls]] , > but I get [[file:./cv\.cls]], i.e. the "." is escaped and does not work. > > When not using [[]], the "." is not escaped - is this a bug, or how can I > circumvent the esaping? > > Cheers, > > Rainer > > #+begin_src R :results org > paste("[[file:./cv.cls]]") > #+end_src > > #+results: > #+BEGIN_ORG > [[file:\./cv\.cls]] > #+END_ORG > > #+begin_src sh :results org > echo "[[file:./cv.cls]]" > #+end_src > > #+results: > #+BEGIN_ORG > [[file:\./cv\.cls]] > #+END_ORG > > #+begin_src R :results org > paste("file:./cv.cls") > #+end_src > > #+results: > #+BEGIN_ORG > file:./cv.cls > #+END_ORG -- Eric Schulte http://cs.unm.edu/~eschulte/