[Top][All Lists]

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

Re: [O] [ANN] BREAKING CHANGE -- removing #+BABEL file-wide property lin

From: Eric Schulte
Subject: Re: [O] [ANN] BREAKING CHANGE -- removing #+BABEL file-wide property lines
Date: Tue, 25 Oct 2011 08:13:49 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

> I think that makes sense.
> While thinking about all of this, and working in real-life documents, I just
> came back to a suggestion which I made some time ago. It goes about this
> enhancement:
>     Would it be possible to specify "buffer-wide language specific" header
>     arguments?

Yes, this is already possible.  You can customize the
org-babel-default-header-args:lang variable (where "lang" is the source
name) as a file local variable.

> That is, be able to say:
>     "In this document, I want to:
>     - tangle all my .sql chunks, but no other;
>     - eval all the elisp chunks with query, but no other."
> Something we could write quite easily along the lines:
>     #+PROPERTY:               tangle no
>     #+PROPERTY:               eval never
>     #+PROPERTY[SQL]:          tangle yes
>     #+PROPERTY[EMACS-LISP]:   eval query
>     (the syntax used here is just a draft sample!)

I do not think we can customize the PROPERTY syntax as is exists outside
of Babel.  The goal here was to piggy-back on top of rather than co-opt
regular Org-mode syntax.

Best -- Eric

> What do you think about this feature? If you feel it can be something
> interesting to have, this is surely to incorporate in the current syntax
> debate. If not... never mind.
> Best regards,
>   Seb

Eric Schulte

reply via email to

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