From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44662 Path: main.gmane.org!not-for-mail From: Joseph Barillari Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem using Emacs/W3 4.0.47 Date: Sat, 04 May 2002 10:13:47 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: main.gmane.org 1020521733 22258 127.0.0.1 (4 May 2002 14:15:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 4 May 2002 14:15:33 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 1740Jw-0005mt-00 for ; Sat, 04 May 2002 16:15:32 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1740Id-0000su-00; Sat, 04 May 2002 09:14:11 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 04 May 2002 09:14:25 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA25583 for ; Sat, 4 May 2002 09:14:10 -0500 (CDT) Original-Received: (qmail 15867 invoked by alias); 4 May 2002 14:13:51 -0000 Original-Received: (qmail 15862 invoked from network); 4 May 2002 14:13:51 -0000 Original-Received: from jbarilla.student.princeton.edu (@140.180.137.120) by gnus.org with SMTP; 4 May 2002 14:13:51 -0000 Original-Received: (from jbarilla@localhost) by jbarilla.student.princeton.edu (8.11.6/8.11.6) id g44EDna16817; Sat, 4 May 2002 10:13:49 -0400 Original-To: Emerick Rogul X-Public-Key: finger -l jbarilla@phoenix.princeton.edu X-Public-Key-Fingerprint: 99C7 4F49 AF41 AD0F A4FC 529C 215E 1BD2 F6A1 FA37 X-URL: http://www.princeton.edu/~jbarilla In-Reply-To: (Emerick Rogul's message of "Wed, 01 May 2002 08:44:15 -0400") Original-Lines: 95 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44662 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44662 --=-=-= Content-Transfer-Encoding: quoted-printable >>>>> "ER" =3D=3D Emerick Rogul writes: > Hi, I know this is a bit off-topic, but I figured someone on > here might know what's wrong with this. I downloaded and > installed the latest version of W3 (w3-4.0pre.47). I'm running > Emacs 21.1.1. When I run M-x w3 I get the following error in > *Messages*: > Loading w3-hot...done > /home/alumni/emerick/.mosaic-hotlist-default does not exist! > Contacting www.cs.indiana.edu:80 Loading url-gw...done Retrieval > complete. Extracting from cache... Parsed 80% of > 2951... Parsed 100% of 2951...done Drawing... done > set-face-attribute: Wrong type argument: stringp, nil > I then set debug-on-error to t and got the following trace: > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > internal-set-lisp-face-attribute(w3-style-face-00001 :family nil > 0) set-face-attribute(w3-style-face-00001 nil :underline nil > :weight normal :fam$ font-set-face-font(w3-style-face-00001 > [:family nil :weight nil :style 0 :siz$ > w3-display-node((*document nil ((html nil ...)))) > w3-draw-tree(((*document nil (...)))) w3-prepare-buffer() > w3-pass-to-viewer() w3-sentinel(#) > w3-fetch("http://www.cs.indiana.edu/elisp/w3/docs.html") w3() * > call-interactively(w3) execute-extended-command(nil) > call-interactively(execute-extended-command) > Does anyone have any idea what's going on here? I can connect this to an on-topic matter, because people who send me mail have a disturbing habit of using HTML that breaks Emacs/W3, and, by consequence, makes the mail unreadable in Gnus. I think the problem above relates to w3's handling of fonts that are specified in the FONT tag but not installed on my machine. I solved the problems by installing emacs-w3m (search Google for w3m_el) instead. The following code (citation below; the original URL escapes me) in .gnus handles HTML mail with w3m: ;; From: greg@visiontech-dml.com ;; Newsgroups: gnu.emacs.help ;; Subject: Re: w3m-mode and images ;; Date: 19 Jul 2001 10:59:19 +0300 ;; Message-ID: <2fasnftcpt4.fsf@broadcom.com> ;; Modified to make it work even if w3 has not installed in the system ;; based on the diary of SHIMADA Mitsunobu, 09 Jan 2002. (defvar gnus-w3m-minor-mode nil) (make-variable-buffer-local 'gnus-w3m-minor-mode) (add-to-list 'minor-mode-alist '(gnus-w3m-minor-mode " w3m")) (eval-after-load "w3m" '(add-to-list 'minor-mode-map-alist (cons 'gnus-w3m-minor-mode w3m-mode-map))) (eval-after-load "mm-decode" '(let ((test (nthcdr 2 (assoc "text/html" mm-inline-media-tests)))) (if test (setcar test (lambda (handle) (locate-library "w3m")))))) (defadvice mm-inline-text (around use-w3m-instead (handle) activate) (require 'w3m) (let ((type (mm-handle-media-subtype handle))) (if (not (equal type "html")) ad-do-it (let ((text (mm-get-part handle)) (b (point))) (save-excursion (insert text) (save-restriction (narrow-to-region b (point)) (goto-char (point-min)) (w3m-region (point-min) (point-max)) (setq gnus-w3m-minor-mode t)) (mm-handle-set-undisplayer handle `(lambda () (let (buffer-read-only) (setq gnus-w3m-minor-mode nil) (if (functionp 'remove-specifier) (mapcar (lambda (prop) (remove-specifier (face-property 'default prop) (current-buffer))) '(background background-pixmap foreground))) (delete-region ,(point-min-marker) ,(point-max-marker)))))))))) =2D-Joe --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE80+ycIV4b0vah+jcRAkKqAJ4oZntmUImm1cory0ZTfEsIXWI3ggCfSGQK tHgRrbkGluCnkGtoG9HS05k= =KEys -----END PGP MESSAGE----- --=-=-=--