emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Batch processing part of a file


From: Loris Bennett
Subject: Re: [O] Batch processing part of a file
Date: Wed, 29 Aug 2012 11:57:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

"Loris Bennett" <address@hidden> writes:

> Nick Dokos <address@hidden> writes:
>
>> Loris Bennett <address@hidden> wrote:
>>
>>> Dear List,
>>> 
>>> I have an orgmode file for collecting data and producing a plot.  The
>>> file contains a Perl script which runs on a remote machine and generates
>>> Graphviz input.  This is then used to create a PDF file.
>>> 
>>> I have had a look at
>>> 
>>>   http://orgmode.org/manual/Batch-execution.html
>>> 
>>> but it is not clear to me how I would navigate to the right part of the
>>> file so that I could then call org-babel-execute-src-block.
>>> 
>>> Can anyone help?
>>> 
>>
>> Haven't tested it but this should work: make sure that the code block is
>> named and then use org-babel-goto-named-src-block.
>>
>> Nick
>
> When I run org-babel-goto-named-src-block interactively, tab-completion
> offers me the name of the block I'm interested in, but when I select it,
> I get 
>
> ,------------------------------------------------------------
> | source-code block 'mem-usage-hist' not found in this buffer
> `------------------------------------------------------------
>
> Is this a bug?  I'm on emacs23 with Org 7.8.11.

This problem seems to be caused by the use of '#+header', so with

,------------------------
| #+name: test
| #+header: :file out.txt
| #+begin_src sh
| echo blah
| #+end_src
`------------------------

I get the above error, but with

,-----------------------------
| #+name: test
| #+begin_src sh :file out.txt
| echo blah
| #+end_src
`-----------------------------

I don't.

> Cheers
>
> Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email address@hidden




reply via email to

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