"Loris Bennett" <loris.benn...@fu-berlin.de> writes: > Nick Dokos <nicholas.do...@hp.com> writes: > >> Loris Bennett <loris.benn...@fu-berlin.de> 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 loris.benn...@fu-berlin.de