From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Brent McBeth Subject: cached tangling Date: Mon, 3 Jun 2013 13:34:48 -0400 Message-ID: <20130603173448.GM6567@broggs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjYp3-0002JP-5z for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:45:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjYoy-0006jT-Mo for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:45:33 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:28586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjYeq-0002uT-3L for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:35:00 -0400 Received: from williwaw ([10.0.1.2]) by broggs.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1UjYem-00012B-0O for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:34:57 -0400 Received: from mcbeth by williwaw with local (Exim 4.80) (envelope-from ) id 1UjYee-0004x6-I3 for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:34:48 -0400 Content-Disposition: inline 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 I have not been able to find a way to cache the results of a tangle. I typically have a date+tree with lots of "code" snippets for ledger. I'm giving an example code snippet below * 2013 :noexport: ** 2013-05 May *** 2013-05-23 Thursday #+name: foo #+begin_src ledger 2013-05-23 * Silly Stuff Expenses:Time Waster $42 Assets:Bank #+end_src *** 2013-05-24 Friday #+name: foo #+begin_src ledger 2013-05-24 * More Dumb Spending Expenses:Time Waster $69 Assets:Cash #+end_src #+name: bar #+begin_src ledger 2013-05-24 * Business Stuff Expenses:BB Stacking $11.38 Assets:Business:Checking #+end_src * Results ** Nothing :noexport: #+name: everything #+begin_src ledger <> <> #+end_src ** Balance #+name: exampleBalance #+begin_src ledger :cmdline balance :noweb yes :exports results <> #+end_src ** Register #+name: exampleRegister #+begin_src ledger :cmdline reg :noweb yes :exports results <> #+end_src ** Just Bank #+name: exampleBalanceBank #+begin_src ledger :cmdline balance Bank :noweb yes :exports results <> #+end_src What I'm wondering is if there is a way to get babel to tangle the named block "everything" once, and then run all the ledger commands on that one file. Maybe it already does it, and I'm a fool, but it from a visceral timing perspective it feels like it is in serial tangling, running ledger, inserting the text, deleting the results of the tangle, then rinsing and repeating. If the secret is to rearrange how I do things, I'm happy to do that a little bit. -- "The man who does not read good books has no advantage over the man who cannot read them." -- Mark Twain