From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [Babel] Arguments... Date: Wed, 01 Dec 2010 07:50:12 -0700 Message-ID: <87ipzdfsyj.fsf@gmail.com> References: <804obvyas7.fsf@mundaneum.com> <87zktnphtx.fsf@gmail.com> <80pqtllmzz.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54983 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNo0i-00012m-RS for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 09:50:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNo0g-0001RB-BQ for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 09:50:20 -0500 Received: from mail-pv0-f169.google.com ([74.125.83.169]:62234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNo0g-0001QU-2P for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 09:50:18 -0500 Received: by pvc30 with SMTP id 30so3339426pvc.0 for ; Wed, 01 Dec 2010 06:50:17 -0800 (PST) In-Reply-To: <80pqtllmzz.fsf@missioncriticalit.com> (=?utf-8?Q?=22S=C3=A9b?= =?utf-8?Q?astien?= Vauban"'s message of "Wed, 01 Dec 2010 13:02:24 +0100") 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> S=C3=A9bastien Vauban writes: >>> The variables are not exported to HTML (and LaTeX?), making the readabi= lity >>> of such a documented code a bit difficult. Feature or bug? >> >> The variable names should be exported to both HTML and LaTeX (when >> org-export-latex-listings is set to true) when the following declaration >> schema is used (at least they are for me). >> >> #+source: something(x=3D9) >> #+begin_src emacs-lisp >> x >> #+end_src > > I confirm that variable names are not exported when they don't get a valu= e, > such as here: > > #+source: add-column-in-table(table, column, type, nullability) > #+begin_src sql > -- add column `$column' (if column does not exist yet) > IF NOT EXISTS (SELECT * > FROM INFORMATION_SCHEMA.COLUMNS > WHERE TABLE_NAME =3D '$table' > AND COLUMN_NAME =3D '$column') > BEGIN > ALTER TABLE $table > ADD $column $type $nullability > END > #+end_src > Ah, That is the problem. Babel currently only support variable names *with* default values. This simplifies our internal variable handling. I agree that in the future it would be good to allow variable names which don't have default values specified but currently all behavior is undefined when variables definitions don't have an assignment. I'm noting this with our variable-handling related development tasks. Best -- Eric