unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil
       [not found]       ` <CABd3gLqdQ24W2GzCD2x48YtCmUqPLJ_bQ0k96qiaDUtixmS6EA@mail.gmail.com>
@ 2013-11-09  3:59         ` Jambunathan K
  2013-11-09  7:44           ` Christof Spitz
  2013-11-15  5:12           ` Jambunathan K
  0 siblings, 2 replies; 4+ messages in thread
From: Jambunathan K @ 2013-11-09  3:59 UTC (permalink / raw)
  To: Christof Spitz; +Cc: 15840, emacs-orgmode


Christof

Christof Spitz <christof.spitz@gmail.com> 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.










^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libxml-parse-xml-region: Raise runtime error, don't return nil
  2013-11-09  3:59         ` bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil Jambunathan K
@ 2013-11-09  7:44           ` Christof Spitz
  2013-11-09 11:53             ` bug#15840: " Jambunathan K
  2013-11-15  5:12           ` Jambunathan K
  1 sibling, 1 reply; 4+ messages in thread
From: Christof Spitz @ 2013-11-09  7:44 UTC (permalink / raw)
  To: Jambunathan K; +Cc: bug-gnu-emacs, emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

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 <kjambunathan@gmail.com>

>
> Christof
>
> Christof Spitz <christof.spitz@gmail.com> 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.
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1269 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil
  2013-11-09  7:44           ` Christof Spitz
@ 2013-11-09 11:53             ` Jambunathan K
  0 siblings, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2013-11-09 11:53 UTC (permalink / raw)
  To: Christof Spitz; +Cc: 15840, emacs-orgmode

Christof Spitz <christof.spitz@gmail.com> writes:

> Emacs did return a runtime error

This is what Emacs does.  

From xml.c: 96
	  message1 ("libxml2 library not found");

and message1 (based on other uses elsewhere) seems to be used for
ordinary echo area messages (like prompt strings etc) as opposed to an
"error" message.

----------------------------------------------------------------

It is easy to check though.

I don't have access to a Windows machine.  It should really be an error
and not a simple informative message.  Try this:

1. Remove libxml
2. M-x toggle-debug-on-error RET
3. Export to freemind

Do you now get a backtrace buffer?  





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil
  2013-11-09  3:59         ` bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil Jambunathan K
  2013-11-09  7:44           ` Christof Spitz
@ 2013-11-15  5:12           ` Jambunathan K
  1 sibling, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2013-11-15  5:12 UTC (permalink / raw)
  To: 15840-done


OP here.  Closed.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-15  5:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3116662324256475454@unknownmsgid>
     [not found] ` <87zjpk44li.fsf@gmail.com>
     [not found]   ` <CABd3gLqr8Y73gB+TzceQi2O=xuDKQLaZ58iQHHfgRxtk7HVwXg@mail.gmail.com>
     [not found]     ` <87d2mf7hqq.fsf@gmail.com>
     [not found]       ` <CABd3gLqdQ24W2GzCD2x48YtCmUqPLJ_bQ0k96qiaDUtixmS6EA@mail.gmail.com>
2013-11-09  3:59         ` bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil Jambunathan K
2013-11-09  7:44           ` Christof Spitz
2013-11-09 11:53             ` bug#15840: " Jambunathan K
2013-11-15  5:12           ` Jambunathan K

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).