From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Dunsmore Subject: Re: Re: Worg publishing broken? Date: Fri, 18 Feb 2011 10:19:11 -0600 Message-ID: <87bp299uyo.fsf@riotblast.dunsmor.com> References: <230744F4-C606-4378-AA25-39C2575A14C2@gmail.com> <87aahwey4u.fsf@riotblast.dunsmor.com> <871v38gceg.fsf@gnu.org> <87r5b6mxru.fsf@fastmail.fm> <874o81hg85.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqT38-0001IO-74 for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 11:19:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqT36-0006kV-RS for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 11:19:18 -0500 Received: from deathroller.dunsmor.com ([98.129.169.48]:59420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqT36-0006kQ-Nu for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 11:19:16 -0500 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: Bastien Cc: Matt Lundin , Org Mode List , Carsten Dominik Bastien writes: > Matt Lundin writes: > >> Would there be any way to get the Worg publishing script or export of >> source code blocks to fail gracefully in these instances? > > That would be helpful indeed. > > As a first step, we could handle errors in a more clever way by using > the variable `noninteractive', testing if Emacs is running in batch > mode. In batch mode, instead of blocking the export process with a > (error ...), we could just logs problems. > > Let's collect places where errors can block the publishing process. Sounds like a good approach. I found a few using: $ git log --oneline | grep -i export | egrep -i "fix|issue|broke|problem|error|resolve|correct|publish" All the ones I found were related to Babel. 1) Used "shell" instead of "sh" for the source block mode. Fixed by commit e4ed828. 2) Used "=<>=" instead of ": <>". Fixed by commit 90cb8cb. When I tested this with by checking out 90cb8cb and trying to export org-contrib/babel/org-babel.org, I got the error "org-babel-exp-lob-one-liners: Wrong type argument: stringp, nil". 3) Enclosing #+begin_src into #+begin_quote. Fixed by commit fd3bca5. The error is: File mode specification error: (file-error "Cannot open load file" "html-helper-mode")