From mboxrd@z Thu Jan  1 00:00:00 1970
From: Eric Schulte <schulte.eric@gmail.com>
Subject: Re: odd behavior for begin_src org :results
Date: Fri, 03 May 2013 09:53:20 -0600
Message-ID: <877gjcytbh.fsf@gmail.com>
References: <87k3ni4ghj.fsf@gmail.com>
	<19624.1367445429@greg-minshalls-mbp.local>
	<86fvy4bj4l.fsf@somewhere.org>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:51864)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <schulte.eric@gmail.com>) id 1UZO8X-0008AP-ME
	for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:19:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <schulte.eric@gmail.com>) id 1UZO8W-00044X-4m
	for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:19:37 -0400
Received: from mail-qa0-x22e.google.com ([2607:f8b0:400d:c00::22e]:42414)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <schulte.eric@gmail.com>) id 1UZO8W-00044S-13
	for emacs-orgmode@gnu.org; Mon, 06 May 2013 12:19:36 -0400
Received: by mail-qa0-f46.google.com with SMTP id g10so1392396qah.12
	for <emacs-orgmode@gnu.org>; Mon, 06 May 2013 09:19:35 -0700 (PDT)
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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: Sebastien Vauban <sva-news@mygooglest.com>
Cc: emacs-orgmode@gnu.org

"Sebastien Vauban" <sva-news@mygooglest.com> writes:

> Hello Greg,
>
> Greg Minshall wrote:
>> It appears that only *string* values are allowed for any :var that are
>> defined (i.e., ':var bar="foo"', and *not* ':var bar=3').
>
> Confirmed. The following does not work.
>
> #+begin_src org :results drawer replace :var you=2
> Hello $you
> #+end_src
>
>> since i'm not 100% sure of the semantics, maybe this is desired.
>
> I dunno either. Clearly, an error should not happen. OTOH, there is no concept
> of Org variable, so every variable here comes down to be implemented as a
> simple string replacement, hence the need for strings only, maybe.
>

I've applied a simple fix which will allow any type of object to be
inserted into an Org-mode code block.  Although there is a great deal of
potential for more sophisticated behavior here, hopefully this simple
solution will suffice.

>
> Best regards,
>   Seb

-- 
Eric Schulte
http://cs.unm.edu/~eschulte