emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking Emacs with libxml2


From: Stefan Monnier
Subject: Re: Linking Emacs with libxml2
Date: Thu, 09 Sep 2010 19:00:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> +  string = make_buffer_string (BEGV, Z, 0);
> Z is the real buffer end, you want ZV.

Of course, even better would be passing the buffer text as 2 byte arrays
without copying it into a string.

If you have to construct an intermediate string, then you might as well
expose a parse-html-string function and let the Elisp code do
a buffer-string call, which will provide a lot more flexibility.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]