From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69995 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Built-in HTML renderer in Emacs? Date: Sun, 29 Aug 2010 16:17:17 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87r5hhcxle.fsf@topper.koldfront.dk> References: <87lj7qmih0.fsf@topper.koldfront.dk> <87hbiee148.fsf@dod.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1283091473 23937 80.91.229.12 (29 Aug 2010 14:17:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 14:17:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18381@lists.math.uh.edu Sun Aug 29 16:17:52 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Opihk-0002Ea-8c for ding-account@gmane.org; Sun, 29 Aug 2010 16:17:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OpihO-0005Ni-Vm; Sun, 29 Aug 2010 09:17:31 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OpihN-0005NS-6R for ding@lists.math.uh.edu; Sun, 29 Aug 2010 09:17:29 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OpihL-0002Dc-FK for ding@lists.math.uh.edu; Sun, 29 Aug 2010 09:17:29 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OpihK-0002TD-00 for ; Sun, 29 Aug 2010 16:17:26 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OpihK-00022H-Lh for ding@gnus.org; Sun, 29 Aug 2010 16:17:26 +0200 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Aug 2010 16:17:26 +0200 Original-Received: from asjo by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Aug 2010 16:17:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org Mail-Copies-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69995 Archived-At: On Sun, 29 Aug 2010 04:45:18 +0200, Lars wrote: > Anyway. There are some artifacts here and there, and it probably > doesn't work under XEmacs since I haven't tested it under XEmacs, so let > me know what the bugs are. First: I have to load gnus-html.el and mm-url.el manually to not have XEmacs complain about gnus-article-html and mm-url-decode-entities not being around. When I have done that, the article buffer seems to be somewhat rendered (the html is rendered, but no headers nor images are shown), and then I get this error: Debugger entered--Lisp error: (void-function set-process-plist) (set-process-plist process (list (quote images) images (quote buffer) buffer)) (let* ((url ...) (process ...)) (set-process-sentinel process (quote gnus-html-curl-sentinel)) (set-process-plist process (list ... images ... buffer))) gnus-html-schedule-image-fetching(# (("http://www.jwz.org/images/tumblr_l5u8ao1ewu1qct75oo1_500.jpg" # #))) (if images (gnus-html-schedule-image-fetching (current-buffer) (nreverse images))) (when images (gnus-html-schedule-image-fetching (current-buffer) (nreverse images))) (let (tag parameters string start end images) (mm-url-decode-entities) (goto-char (point-min)) (while (re-search-forward "<\\([^ />]+\\)\\([^>]*\\)>" nil t) (setq tag ... parameters ... start ...) (when ... ...) (delete-region start ...) (when ... ...) (setq end ...) (cond ... ... ...) (goto-char start)) (goto-char (point-min)) (while (re-search-forward "" nil t) (replace-match "" t t)) (when images (gnus-html-schedule-image-fetching ... ...))) gnus-html-wash-tags() (save-restriction (narrow-to-region (point) (point)) (save-excursion (set-buffer ...) (call-process-region ... ... "w3m" nil article-buffer nil "-halfdump" "-t" ... "-cols" ... "-o" "display_image=off" "-T" "text/html")) (gnus-html-wash-tags)) (let ((article-buffer ...)) (save-restriction (narrow-to-region ... ...) (save-excursion ... ...) (gnus-html-wash-tags))) gnus-article-html((# ("text/html" (charset . "utf8")) 8bit nil nil nil nil nil)) mm-inline-text-html((# ("text/html" (charset . "utf8")) 8bit nil nil nil nil nil)) mm-display-inline((# ("text/html" (charset . "utf8")) 8bit nil nil nil nil nil)) mm-display-part((# ("text/html" (charset . "utf8")) 8bit nil nil nil nil nil) t) byte-code("..." [type ignored handles beg display handle string-match nil mm-inline-override-p 4 "inline" mm-attachment-override-p mm-automatic-display-p mm-inlinable-p mm-inlined-p mm-automatic-external-display-p t split-string "/" "text" "message" insert-char ?\n 2 0 1 gnus-unbuttonized-mime-type-p gnus-insert-mime-button gnus-article-insert-newline -1 (set-buffer gnus-summary-buffer) ((error)) gnus-article-mode gnus-buffer-live-p mm-display-part mm-insert-inline mail-content-type-get charset "text/calendar" utf-8 mm-string-as-multibyte mm-get-part gnus-decoded buffer-string mm-decode-string gnus-treat-article "application/pgp-signature" gnus-safe-html-newsgroups part --dolist-temp--51136 ...] 6) gnus-mime-display-single((# ("text/html" (charset . "utf8")) 8bit nil nil nil nil nil)) gnus-mime-display-part((# ("text/html" (charset . "utf8")) 8bit nil nil nil nil nil)) gnus-display-mime() gnus-article-prepare-display() gnus-article-prepare(79 nil) gnus-summary-display-article(79) gnus-summary-next-page(nil) call-interactively(gnus-summary-next-page) (dispatch-event "[internal]") That one I couldn't crack within my attention span of 5s. XEmacs 21.5 (beta29) "garbanzo" db84c9d41437+ [Lucid] (x86_64-pc-linux, Mule) of Fri Aug 27 2010 on topper :-), Adam -- "Didn't matter to me what I said. Still doesn't, Adam Sjøgren really." asjo@koldfront.dk