From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH] Re: Publishing problem on Worg due to babel intro Date: Fri, 19 Aug 2011 10:45:14 -0600 Message-ID: <87d3g1mjtx.fsf@gmail.com> References: <8762m4104r.fsf@sbs.ch> <87ei0ho39n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuSC8-0006TY-Of for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 12:45:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuSC7-0005yd-Hd for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 12:45:20 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:37372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuSC7-0005y8-Dk for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 12:45:19 -0400 Received: by gwaa20 with SMTP id a20so1924604gwa.0 for ; Fri, 19 Aug 2011 09:45:18 -0700 (PDT) In-Reply-To: (Thomas S. Dye's message of "Fri, 19 Aug 2011 06:42:27 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org, Christian Egli Applied, Thanks -- Eric tsd@tsdye.com (Thomas S. Dye) writes: > Adds a line to the manual specifying this requirement. > > Tom > > From 5ee660db5f5f4fbaac13ac3787c6e4bca3d2abeb Mon Sep 17 00:00:00 2001 > From: Tom Dye > Date: Fri, 19 Aug 2011 06:27:11 -1000 > Subject: [PATCH] * doc/org.texi: :var requires default value when declared > > --- > doc/org.texi | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/doc/org.texi b/doc/org.texi > index f7ac82e..f0a363b 100644 > --- a/doc/org.texi > +++ b/doc/org.texi > @@ -12200,7 +12200,8 @@ these are addressed in the language-specific documentation. However, the > syntax used to specify arguments is the same across all languages. The > values passed to arguments can be literal values, values from org-mode tables > and literal example blocks, the results of other code blocks, or Emacs Lisp > -code---see the ``Emacs Lisp evaluation of variables'' heading below. > +code---see the ``Emacs Lisp evaluation of variables'' heading below. In > +every case, variables require a default value when they are declared. > > These values can be indexed in a manner similar to arrays---see the > ``indexable variable values'' heading below. > -- > 1.7.1 > > > Eric Schulte writes: > >> tsd@tsdye.com (Thomas S. Dye) writes: >> >>> Christian Egli writes: >>> >>>> Hi all >>>> >>>> I enhanced the taskjuggler tutorial on worg. However the fix is not >>>> published as there is a problem with the intro page for Babel[1] (see >>>> also the publishing report[2]). The page also fails if I try to publish >>>> it locally with the following error message: >>>> >>>> mapc: Wrong type argument: consp, nil >>>> >>>> I don't understand where the problem is with this page but I'd >>>> appreciate if any of the authors (Eric, Dan, Tom) or anyone else could >>>> look into it. >>>> >>>> Thanks >>>> Christian >>>> >>>> Footnotes: >>>> [1] http://orgmode.org/worg/org-contrib/babel/intro.html >>>> [2] http://orgmode.org/worg/publishing.txt >>> >>> Yes, something is wrong here. >>> >>> Pressing C-c C-c on this line raises the error: >>> >>> #+call: square(x=6) >>> >>> If I change the square source block from: >>> >>> #+srcname: square(x) >>> #+begin_src python >>> return x*x >>> #+end_src >>> >>> to: >>> >>> #+srcname: square(x=1) >>> #+begin_src python >>> return x*x >>> #+end_src >>> >>> then the error goes away, but it is raised later in the export, >>> presumably on another code block. >>> >> >> When writing a code block *all* variables require a default value. I've >> added default values to all of the variables in this file and it now >> exports as expected. >> >> Cheers -- Eric >> >>> >>> hth, >>> Tom -- Eric Schulte http://cs.unm.edu/~eschulte/