From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26483 Path: main.gmane.org!not-for-mail From: wmperry@aventail.com (William M. Perry) Newsgroups: gmane.emacs.gnus.general Subject: Re: w3 rendering Date: 09 Nov 1999 07:12:11 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <86u2mvoodg.fsf@megalith.bp.aventail.com> References: Reply-To: wmperry@aventail.com NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163684 19638 80.91.224.250 (21 Oct 2002 01:28:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:28:04 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id HAA16613 for ; Tue, 9 Nov 1999 07:11:25 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id GAB32109; Tue, 9 Nov 1999 06:11:22 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 09 Nov 1999 06:11:14 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id GAA24139 for ; Tue, 9 Nov 1999 06:11:03 -0600 (CST) Original-Received: from biff.kiva.net (biff.kiva.net [206.97.64.31]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id HAA16600 for ; Tue, 9 Nov 1999 07:10:32 -0500 (EST) Original-Received: (qmail 24476 invoked from network); 9 Nov 1999 12:09:17 -0000 Original-Received: from usrpri2-13.kiva.net (HELO megalith.bp.aventail.com) (206.97.75.78) by biff.kiva.net with SMTP; 9 Nov 1999 12:09:16 -0000 Original-Received: (from wmperry@localhost) by megalith.bp.aventail.com (8.9.3/8.9.3) id HAA21717; Tue, 9 Nov 1999 07:12:11 -0500 Original-To: ding@gnus.org X-Now-Listening-To: Van Morisson - Reminds Me of You X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7 writes: > So -- nnultimate has the parsed html in a variable, and I would like > to insert html from that parse tree into a buffer. So that I can let > w3 parse it and render it later. :-) > > Like this: > > 1. nnultimate calls w3-parse-buffer > 2. nnultimate finds the cell in the parsed tree > 3. nnultimate wants to insert that HTML into the article bufffer so that > 4. Gnus can let the text/html handler (i.e., w3) render it > > I can't find a way to do 3). I've grepped through the w3 sources > some, but I don't really know what to grep for... You mean you want to insert it as raw HTML, or just directly draw what you've already filtered out? The display engine relies on certain pieces of the parse tree being there at the beginning. Most notably the special '*document' tag make sit set up the local drawing variables and create a special buffer. You could do something like: (defun nnultimate-draw-content (content) (w3-draw-tree (list (list '*document nil content))) (w3-finish-drawing)) -bp