emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] odd behavior for begin_src org :results


From: Eric Schulte
Subject: Re: [O] odd behavior for begin_src org :results
Date: Fri, 03 May 2013 09:53:20 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

"Sebastien Vauban" <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]