From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christof Spitz Newsgroups: gmane.emacs.orgmode,gmane.emacs.bugs 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043890856ec38204eab9ab1b X-Trace: ger.gmane.org 1383983106 24107 80.91.229.3 (9 Nov 2013 07:45:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2013 07:45:06 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, "emacs-orgmode@gnu.org" To: Jambunathan K Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sat Nov 09 08:45:10 2013 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vf3EE-0002Cp-74 for geo-emacs-orgmode@m.gmane.org; Sat, 09 Nov 2013 08:45:10 +0100 Original-Received: from localhost ([::1]:56353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vf3ED-000194-Jr for geo-emacs-orgmode@m.gmane.org; Sat, 09 Nov 2013 02:45:09 -0500 Original-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 Original-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 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:37183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vf3Dd-0002la-Vi; Sat, 09 Nov 2013 02:44:34 -0500 Original-Received: by mail-wi0-f181.google.com with SMTP id m19so358589wiv.8 for ; Fri, 08 Nov 2013 23:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=K5ZJ9hXmvdSwWHmIVT5kqxoaFf9uCqDXiM7cAS8k8oo=; b=DsXuAYFnzpHWraT4X/Bz6MkQPHvNmzeHy1lIC1CSl8VNu+rSHUoce5TUBwH+wvBRz5 P+6Sc/xz/j3/c0ZlkFxN6ha24G6JBwfuFotJ+VZ3V8EK6UCyVkiqhNorlT9JJWge/Eys g+f2DaS3DjtOchG3gSWGWowPjeVoVP+xAcn68QCFnnv91fvUDaRDCkDRrUTZYXROY3FQ 7jEqLpiJFJItP2EsGdh6PhlZOS6HFMDIprxb69PDsNtOvOwkINd8yPo6pk1bADEG5j9/ 8lRIylqliitplcE1zC6gZHS3IUfxQilMEBJVsVyl+va+95F8kEvm/DnzKcXS1GFmcTmh hLuw== X-Received: by 10.180.73.70 with SMTP id j6mr5058409wiv.47.1383983072852; Fri, 08 Nov 2013 23:44:32 -0800 (PST) Original-Received: by 10.216.73.198 with HTTP; Fri, 8 Nov 2013 23:44:32 -0800 (PST) In-Reply-To: <8761s2rzsc.fsf_-_@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.14 Precedence: list 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 Original-Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.orgmode:78649 gmane.emacs.bugs:80172 Archived-At: --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--