From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Batch processing part of a file Date: Wed, 29 Aug 2012 11:57:37 +0200 Message-ID: <87txvmuijy.fsf@slate.zedat.fu-berlin.de> References: <87y5l8aclj.fsf@slate.zedat.fu-berlin.de> <27806.1345552576@alphaville> <87y5l45z6e.fsf@slate.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6f22-0006qr-28 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 05:58:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6f1w-00043L-45 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 05:57:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:36221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6f1v-00043H-U9 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 05:57:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T6f1w-0006b4-Io for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 11:57:48 +0200 Received: from slate.zedat.fu-berlin.de ([160.45.11.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Aug 2012 11:57:48 +0200 Received: from loris.bennett by slate.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Aug 2012 11:57:48 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Loris Bennett" writes: > Nick Dokos writes: > >> Loris Bennett 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.bennett@fu-berlin.de