From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Linking Emacs with libxml2 Date: Fri, 10 Sep 2010 12:46:34 +0200 Message-ID: References: <8A20526E-44B3-4434-9D40-54A36F976CD6@mit.edu> <4C85892B.5080105@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284115607 27201 80.91.229.12 (10 Sep 2010 10:46:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 10:46:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 10 12:46:46 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou181-0000HF-Az for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 12:46:45 +0200 Original-Received: from localhost ([127.0.0.1]:35069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou180-0002Py-Q2 for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 06:46:44 -0400 Original-Received: from [140.186.70.92] (port=37187 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou17v-0002O4-1N for emacs-devel@gnu.org; Fri, 10 Sep 2010 06:46:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou17u-00042d-3H for emacs-devel@gnu.org; Fri, 10 Sep 2010 06:46:38 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.4]:35335) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou17t-00042U-T9 for emacs-devel@gnu.org; Fri, 10 Sep 2010 06:46:38 -0400 Original-Received: from IMPmailhost6.adm.correo ([10.20.102.127]) by IMPaqm4.telefonica.net with bizsmtp id 4vJL1f00x2kvMAa3Qymcl7; Fri, 10 Sep 2010 12:46:36 +0200 Original-Received: from ceviche.home ([83.61.42.227]) by IMPmailhost6.adm.correo with BIZ IMP id 4ymb1f0024u4RdP1mymbH6; Fri, 10 Sep 2010 12:46:36 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id E6B0D660D2; Fri, 10 Sep 2010 12:46:34 +0200 (CEST) In-Reply-To: (Andreas Schwab's message of "Fri, 10 Sep 2010 10:14:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129876 Archived-At: >> Hm. I guess so. I'll change the html-parse-buffer function into a >> html-parse-string function instead. > I think it is still useful to provide a html-parse-buffer function that > can be more efficient when the intermediate string copy is not needed. Agreed, but right now it's not clear when/how such an intermediate copy can be avoided. BTW, another question regarding libxml2: does it provide functions to do partial parses (e.g. to know the syntactic context of a particular buffer position)? Stefan