From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christof Spitz Subject: Re: libxml-parse-xml-region: Raise runtime error, don't return nil Date: Sat, 9 Nov 2013 08:44:32 +0100 Message-ID: References: <3116662324256475454@unknownmsgid> <87zjpk44li.fsf@gmail.com> <87d2mf7hqq.fsf@gmail.com> <8761s2rzsc.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043890856ec38204eab9ab1b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vf3Dh-0000si-67 for emacs-orgmode@gnu.org; Sat, 09 Nov 2013 02:44:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vf3Df-0002re-VV for emacs-orgmode@gnu.org; Sat, 09 Nov 2013 02:44:37 -0500 In-Reply-To: <8761s2rzsc.fsf_-_@gmail.com> 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: Jambunathan K Cc: bug-gnu-emacs@gnu.org, "emacs-orgmode@gnu.org" --f46d043890856ec38204eab9ab1b Content-Type: text/plain; charset=ISO-8859-1 Emacs did return a runtime error, it was simply my mistake not to have noticed it in the Message buffer. 2013/11/9 Jambunathan K > > Christof > > Christof Spitz writes: > > > I found the bug: Windows-Emacs was missing the libxml2 library. I got > > the libxml2-2.7.8.-w32-bin.zip, copied the content of /bin into Emacs' > > /bin directory and now the formatting works. > > This should have been very difficult to track down. > > ox-freemind.el does invoke `libxml-parse-xml-region'. I think Emacs > should raise a runtime error (and not return nil) if the above API is > called but libxml is unavailable. > > ps: This bug is a good excuse to audit "other" such wrapper calls (if > there are any) and make sure that they don't fall silently. > > > > > > --f46d043890856ec38204eab9ab1b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Emacs did return a runtime error, it was simply my mistake= not to have noticed it in the Message buffer.


2013/11/9 Jambunathan K <kjamb= unathan@gmail.com>

Christof

Christof Spitz <christof.spi= tz@gmail.com> writes:

> I found the bug: Windows-Emacs was missing the libxml2 library. I got<= br> > the libxml2-2.7.8.-w32-bin.zip, copied the content of /bin into Emacs&= #39;
> /bin directory and now the formatting works.

This should have been very difficult to track down.

ox-freemind.el does invoke `libxml-parse-xml-region'. =A0I think Emacs<= br> should raise a runtime error (and not return nil) if the above API is
called but libxml is unavailable.

ps: This bug is a good excuse to audit "other" such wrapper calls= (if
there are any) and make sure that they don't fall silently.






--f46d043890856ec38204eab9ab1b--