[PATCH] test: Produce useful output when the HTML with images test fails

Tomi Ollila tomi.ollila at iki.fi
Wed Nov 21 00:31:59 PST 2012


On Wed, Nov 21 2012, Tomi Ollila <tomi.ollila at iki.fi> wrote:
>
> From notmuch IRC log Thu Oct 25 2012
>
> --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
> < Domo_> For me the 'shr test fails by missing libxml-parse-html-region ...
> < Domo_> which is defined in src/xml.c -- and exists by default on 
>          another emacs...
> < Domo_> which probably means that my self-compiled emacs24 just doesn't 
>          have that xml code compiled in :(
> < Domo_> #ifdef HAVE_LIBXML2
> < Domo_> ...
> < Domo_> #endif /* HAVE_LIBXML2 */
> --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

That's easy to test:

run emacs24

Enter

M-x describe-function libxml-parse-html-region

to see whether the function is defined.

The output should look like:

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
libxml-parse-html-region is a built-in function in `C source code'.

(libxml-parse-html-region START END &optional BASE-URL)

Parse the region as an HTML document and return the parse tree.
If BASE-URL is non-nil, it is used to expand relative URLs.
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

Tomi



More information about the notmuch mailing list