emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [Babel] Arguments...


From: Eric Schulte
Subject: Re: [Orgmode] Re: [Babel] Arguments...
Date: Wed, 01 Dec 2010 07:50:12 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Sébastien Vauban <address@hidden> writes:

> Hi Eric,
>
> "Eric Schulte" wrote:
>> Sébastien Vauban <address@hidden> writes:
>>> The variables are not exported to HTML (and LaTeX?), making the readability
>>> 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=9)
>> #+begin_src emacs-lisp
>>   x
>> #+end_src
>
> I confirm that variable names are not exported when they don't get a value,
> 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 = '$table'
>                AND COLUMN_NAME = '$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



reply via email to

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