From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte 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: Received: from eggs.gnu.org ([208.118.235.92]:51864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; Mon, 06 May 2013 09:19:35 -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: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" 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