From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] passing strings in Date: Thu, 25 Mar 2010 11:12:20 -0600 Message-ID: <874ok4jpfv.fsf@gmail.com> References: <87eij8whoa.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> <87ljdgjsr2.fsf@gmail.com> <87k4t0v0in.fsf@polymath-solutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nuqbc-000869-2g for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 13:12:28 -0400 Received: from [140.186.70.92] (port=59841 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nuqba-00085S-MG for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 13:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuqbY-0000Ek-QF for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 13:12:26 -0400 Received: from qw-out-1920.google.com ([74.125.92.148]:12057) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuqbY-0000Ee-MN for emacs-orgmode@gnu.org; Thu, 25 Mar 2010 13:12:24 -0400 Received: by qw-out-1920.google.com with SMTP id 4so2092704qwk.24 for ; Thu, 25 Mar 2010 10:12:24 -0700 (PDT) In-Reply-To: <87k4t0v0in.fsf@polymath-solutions.com> (Maurizio Vitale's message of "Thu, 25 Mar 2010 12:17:36 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Maurizio Vitale Cc: emacs-orgmode@gnu.org Hi Maurizio, Thanks for the "$$" suggestion, I think that sounds like the simplest solution. I've just applied it, so your original table should now work if you double the "$" before the column number. Dan, I think this is preferable to forcing the addition of "()" for interpretation as a reference both for reasons of backwards compatibility, and also I somehow feel that reference interpretation by default and string interpretation only in the presence of double quotes is somehow more intuitive and natural. Definitely an open area for discussion... Thanks -- Eric Maurizio Vitale writes: >>>>>> "Eric" == Eric Schulte writes: > > Eric> Hi Maurizio, The ip addresses in your table are being > Eric> interpreted as source/reference names which org-babel is > Eric> trying to resolve. In order to differentiate between strings > Eric> and reference names, we either must surround all strings in > Eric> double quotes (as below) or we must end all references with > Eric> "()" and disallow any strings which end in "()". Currently we > Eric> are taking the former approach, which means your table will > Eric> require the following to work... > > That was a quick replay! Thanks. > > If I understand you, the problem is not with org-babel, but with > org-mode itself expanding column references. In this case, wouldn't it > be possible to consider a general "quoting" mechanism preventing that > expansion? obviously "'" cannot be used, but maybe $$2 could be made to > mean "threat the value literally". > > I'd be ok with the quotes in the source, but they look terrible in > exported documents. > > Anyhow, I can live with the workaround you suggested. > Thanks again, > > Maurizio