From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: [babel] ledger tutorial on Worg Date: Wed, 01 Sep 2010 19:33:20 +0100 Message-ID: <87mxs1co0f.wl%ucecesf@ucl.ac.uk> References: <871v9lm0s3.wl%ucecesf@ucl.ac.uk> <4296BE2D-051E-47E8-8AA7-24582082DD0F@gmail.com> <87zkw8vzxw.fsf@gmail.com> <87aao1bt8w.fsf@mundaneum.com> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Sep__1_19:33:20_2010-1" Return-path: Received: from [140.186.70.92] (port=35946 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqvWP-0006J0-7k for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 18:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqvWN-0007LU-Tu for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 18:11:09 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:50327) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqvWN-0007Kf-Pt for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 18:11:07 -0400 In-Reply-To: <87aao1bt8w.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?B?U8OpYmFzdGllbg==?= Vauban Cc: emacs-orgmode@gnu.org --Multipart_Wed_Sep__1_19:33:20_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 01 Sep 2010 13:25:35 +0200, S=C3=A9bastien Vauban wrote: >=20 > Hi Eric, >=20 > >>> I have just placed on Worg [1] a short tutorial/example for using > >>> ledger with babel. Please have a look and comment etc! > > > > [1] http://orgmode.org/worg/org-contrib/babel/languages.php#langs >=20 > Being interested a lot in Ledger integration with Org-Babel as well, I ha= ve a > quick remark: instead of including (with explicit full path) the journal > entries in every code block, can't we use the more natural (at least, to = me) > tangling provided by the Noweb syntax? >=20 > Something like: >=20 > --8<---------------cut here---------------start------------->8--- > * Journal data >=20 > #+src_name ledger-journal > #+begin_src ledger :results silent > 2008/01/03 * (SCORPIOS) SEB VAUBAN > Assets:Bank:Checking:799979450003 550.00 EUR > Assets:Bank:Transferred >=20 > 2008/01/01 * ( ) UNKNOWN-PAYEE > Assets:Bank:Checking:799979450003 21.91 EUR > Expenses:Unknown > #+end_src >=20 > * Balance >=20 > Give me an overview... >=20 > #+srcname: ledger-balance > #+begin_src ledger :cmdline "bal" :noweb > <> > #+end_src > --8<---------------cut here---------------end--------------->8--- >=20 > Though this should work as far as I understand, it does not yet... >=20 > Best regards, > Seb Yes, I would have thought that this would work. It doesn't fit in naturally with how I would like to do things as I have many different blocks of ledger entries spread around the file... =20 In any case, I will try to see why this doesn't work as I have used the :noweb approach for other babel codes successfully and cannot see any reason why ledger would be different. Added to my todo list... :-) --Multipart_Wed_Sep__1_19:33:20_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Wed_Sep__1_19:33:20_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Wed_Sep__1_19:33:20_2010-1--