From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Emery Newsgroups: gmane.emacs.help Subject: Re: Emacs 21 and w3 on Debian Date: Mon, 23 May 2005 10:30:17 +0200 Organization: Home, France Message-ID: <87psvipco6.fsf@spamfoil.invalid> References: <87sm0fbjx4.fsf@tiger.rapttech.com.au> <874qcvqar0.fsf@spamfoil.invalid> <87oeb2c2x5.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1116841458 11787 80.91.229.2 (23 May 2005 09:44:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 May 2005 09:44:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 23 11:44:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Da9SU-0001pD-Ew for geh-help-gnu-emacs@m.gmane.org; Mon, 23 May 2005 11:42:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Da9Vu-0007qp-VE for geh-help-gnu-emacs@m.gmane.org; Mon, 23 May 2005 05:46:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!freenix!usenet-fr.net!proxad.net!infeed-2.proxad.net!news16-e.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: T-gnus/6.17.3 (based on No Gnus v0.3) SEMI/1.14.6 (Maruoka)FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.0.50 (gnu/linux) MULE/5.0 (SAKAKI) Cancel-Lock: sha1:UBGhb/viOL2SKbUMHEqWjwZfUK8= Original-Lines: 78 Original-NNTP-Posting-Date: 23 May 2005 10:30:00 MEST Original-NNTP-Posting-Host: 82.233.241.49 Original-X-Trace: 1116837000 news16-e.free.fr 20259 82.233.241.49:36642 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:131463 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26919 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26919 Tim X writes: > Well, it seems pretty much any page with a relative link which is not > relative to the document root of the server. An example is > > http://www.une.edu.au/itd/index.html > > If you try to follow the "About ITD" link on that page, instead of > getting > > http://www.une.edu.au/itd/about/index.html Hmm, strange, this works for me when using the same environment as you have: Debian GNU/Linux sid GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-03-17 on trouble, modified by Debian w3-el-e21 4.0pre.2001.10.27-16 w3-url-e21 2001.11.08-7 with the following procedure: /usr/bin/emacs -q & M-x w3-fetch http://www.une.edu.au/itd/index.html this does get http://www.une.edu.au/itd/about/index.html ... However: 1. Errors are signaled when loading images ("Text is read-only"), this is solved with: (defadvice w3-finalize-image-download (around set-inhibit-read-only activate) (let ((inhibit-read-only t)) ad-do-it)) (defadvice widget-image-value-create (around set-inhibit-read-only activate) (let ((inhibit-read-only t)) ad-do-it)) 2. Images are not inserted where they belong, this is fixed with: (eval-after-load "w3-widget" (quote (defun widget-image-value-set (widget value) ;; Recreate widget with new value. (save-excursion (let* ((where (widget-get widget 'where))) (widget-image-delete widget) (if (or (eq 'image (car-safe value)) ; Emacs 21 (widget-glyphp value)) (widget-put widget 'glyph value) (widget-put widget :value value)) (and where (goto-char where)) (put-text-property (point) (progn (widget-apply widget :create) (point)) 'inaudible widget-image-inaudible-p)))) )) 3. There are ">" glitches, which are eliminated with: (add-hook 'w3-parse-hooks (lambda () (while (search-forward "/>" nil t) (replace-match ">")))) Hoping this helps, Thierry -- thierry |point| emery |chez| free |point| fr