From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: [Babel] Handling of errors when using Ledger Date: Wed, 13 Oct 2010 09:04:52 +0100 Message-ID: <87mxqiv7q3.wl%ucecesf@ucl.ac.uk> References: <877hhudxor.fsf@mundaneum.com> <87sk0inmys.fsf@stats.ox.ac.uk> <807hhnfaix.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_Oct_13_09:04:52_2010-1" Return-path: Received: from [140.186.70.92] (port=50207 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P601h-0002wf-7m for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 08:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5xAF-0006in-0S for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 04:58:24 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:41912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5xAE-0006hz-SW for emacs-orgmode@gnu.org; Wed, 13 Oct 2010 04:58:22 -0400 In-Reply-To: <807hhnfaix.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_Oct_13_09:04:52_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 12 Oct 2010 21:58:46 +0200, S=C3=A9bastien Vauban wrote: >=20 > Hi Dan, >=20 > Dan Davison wrote: > > S=C3=A9bastien Vauban writes: > > [...] > >> Let's imagine I thought (which was the case at some point) I needed to > >> enclose the parameters between quotes: > >> > >> #+srcname: quoted-params > >> #+begin_src ledger :cmdline "reg unknown" :noweb yes :session > >> <> > >> #+end_src > >> > >> #+results: quoted-params > >> > >> Nothing is returned. In fact, I would expect an error to be thrown [..= .] I > >> don't know if this is a common problem (to Org-Babel) or only to the L= edger > >> part of it, but I think *we* should somehow improve the handling of er= rors. > > > > Babel has a standard mechanism for evaluating shell commands and displa= ying > > errors if any. It is the function `org-babel-eval' in ob-eval.el. The > > problem is that ob-ledger is not using this mechanism. Would you be > > interested in fixing this? Basically what is required is to re-implement > > `org-babel-execute:ledger' using `org-babel-eval'. (There are plenty of > > examples in the other langauges to follow.) Please don't worry if you a= re > > too busy though. >=20 > I'd be interested to try and fix it. I am busy, yes: I am just recovering= 3 [...] > So, I'd propose to fight for being the first one to fix that... And let's= see > who will win...=C2=A0;-) Please do!! As the original author (basing my code on other babel codes, mind you), I am happy to lose this fight ;-) I really don't know enough babel to make the changes required quickly and I also am struggling with "free" time at the moment. --Multipart_Wed_Oct_13_09:04:52_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_Oct_13_09:04:52_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_Oct_13_09:04:52_2010-1--