From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [Babel] Handling of errors when using Ledger Date: Thu, 25 Nov 2010 21:03:23 +0100 Message-ID: <80lj4h2mt0.fsf@missioncriticalit.com> References: <877hhudxor.fsf@mundaneum.com> <87sk0inmys.fsf@stats.ox.ac.uk> <807hhnfaix.fsf@mundaneum.com> <87mxqiv7q3.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Dan, Dan wrote: > Eric S Fraga ucl.ac.uk> writes: >> On Tue, 12 Oct 2010 21:58:46 +0200, S=C3=A9bastien Vauban wrote: >> > 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 = [...]=20 > > [...] > >> > > Babel has a standard mechanism for evaluating shell commands and dis= playing >> > > 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. > > [...] > > This patch should make ob-ledger use the common org-babel error mechanism= . It is > in branch ledger of the main repo. So you won (being the first to implement it)... Thanks a lot. > However, I'm not yet a ledger user. Could someone test it? I'll try, but I first need to ensure Ledger works here -- as told, I've now inherited a Windows PC, after my laptop (Ubuntu) crash, and must redo some painful configuration. However, I still plan on really using Ledger, hence on testing your patch (very) soon. > Incidentally, can any gnus users tell me -- is there a non-painful way of > retrieving an old message from nntp in order to create a reply in the cor= rect > thread? Or do you hack the headers to make it appear in the right thread?= I'm > using the gmane web interface to send this. I don't know how you did it, but it appeared in the correct thread to me. What I do, with Gnus, is C-u 1000 RET for entering the group, and fetching = the last 1000 posts (1000 is chosen depending on the date, and the estimated amount of post over that period of time). Then, search on title... Maybe (euh, no, certainly) some better methods do exist. Like keeping a link to the post, and C-c C-o on the link. Others? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode