From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: eww.el: Patch to cache the parse tree Date: Mon, 2 Dec 2013 19:34:41 -0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1386041688 4392 80.91.229.3 (3 Dec 2013 03:34:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2013 03:34:48 +0000 (UTC) To: Lars Magne Ingebrigtsen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 03 04:34:54 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VnglB-00047w-GK for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2013 04:34:54 +0100 Original-Received: from localhost ([::1]:40005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnglA-0005tF-Ur for ged-emacs-devel@m.gmane.org; Mon, 02 Dec 2013 22:34:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vngl4-0005t7-FL for emacs-devel@gnu.org; Mon, 02 Dec 2013 22:34:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vngl0-0005x5-7M for emacs-devel@gnu.org; Mon, 02 Dec 2013 22:34:46 -0500 Original-Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]:57790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vngl0-0005x1-2E for emacs-devel@gnu.org; Mon, 02 Dec 2013 22:34:42 -0500 Original-Received: by mail-oa0-f48.google.com with SMTP id l6so14177430oag.21 for ; Mon, 02 Dec 2013 19:34:41 -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 :content-type; bh=hfkIivQ6YD7IJgLooNE0TIQX7eREZkhac96jHcRnNKA=; b=wb2zOXMAVLdxCPoAagygAqq3KMIaNpC4XYf5oCnqBh6JKb7Cbg8pUzqi7aRffByixS 8cFl1Z+rC9GQ1pCyFqXosv6mFAyFae3JdOQv6IbU7IIu4zXxWRD+ku1zqUnWrFtHDpK2 +mnwJfXy0S601CWKlMsIS+h+N6AC4kEl41wQMi6SMEkmpu6Vg0FeWSN3+d5hg1oKpcjX x4sEGCC8HssM2ZneXL889qR8y3Fx+ibN5ob9LfldE1H6DkZesz2Tl0M7MHr+GYrb230T y1ff36UhyyyWKgjmaX+15w7lXZTvHup8qpCtJIxn9SJfX3ghYEK8watEUoehAdDif3Q9 majQ== X-Received: by 10.182.48.130 with SMTP id l2mr4698530obn.44.1386041681108; Mon, 02 Dec 2013 19:34:41 -0800 (PST) Original-Received: by 10.182.112.42 with HTTP; Mon, 2 Dec 2013 19:34:41 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166028 Archived-At: Hi Lars, One more request: in the call (libxml-parse-html-region (point) (point-max)) could you please pass in the current url as a third argument so that libxml knows to handle it as a base URL? -- Best Regards, --raman On 12/1/13, Lars Magne Ingebrigtsen wrote: > "T.V. Raman" writes: > >> I'd like to add some code to eww.el so that the parsed document >> is cached ( -- this will enable functionality such as document >> filtering etc (see >> http://emacspeak.googlecode.com/svn/trunk/lisp/shr-url.el) for >> similar functionality that I originally built using bare shr. > > I've now applied parts of your patch, and rewrote bits. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no >