[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] PERL, org-mode and literal document input.
From: |
Eric Schulte |
Subject: |
Re: [O] PERL, org-mode and literal document input. |
Date: |
Fri, 06 May 2011 14:55:18 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
address@hidden (Allen S. Rout) writes:
> "Eric Schulte" <address@hidden> writes:
>
>> alternately you could just include your yaml as an example block
>>
>> #+results: yaml-config
>> : erpalpha:...
>
> This is what I've eventually done. It feels dirty; I'm asserting the
> "results" block of a nonexistent src, and saying "edit this". But
> perhaps I should just deal with it.
>
> Am I silly to want to be able to label it 'srcname' instead of
> 'results'? My elisp-fu is not good enough to let me define
>
> :var-but-read-the-src-block
>
These are just labels, and more than that they are just the labels that
first occurred to Dan and I. Semantically they are used to name data,
and I can understand your "dirty" feeling of having results without a
related code block, but rest assured, Babel does not assume that there
should exist such a code block and this sort of usage is both supported
and intended.
To emphasize this point, I've just pushed up a change so that you can
now label such inline data with
#+data: my-named-data
: 3
and more importantly you can add your own labels by customizing the new
`org-babel-data-names' variable.
Cheers -- Eric
n
Note: if you update the `org-babel-data-names' variable you might want
to later run the following code...
(setq org-babel-result-regexp
(concat "^[ \t]*#\\+"
(regexp-opt org-babel-data-names)
"\\(\\[\\([[:alnum:]]+\\)\\]\\)?\\:[ \t]*"))
>
> - Allen S. Rout
>
>
>
--
Eric Schulte
http://cs.unm.edu/~eschulte/