all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Emery <see.sig@spamfoil.invalid>
Subject: Re: Emacs 21 and w3 on Debian
Date: Mon, 23 May 2005 10:30:17 +0200	[thread overview]
Message-ID: <87psvipco6.fsf@spamfoil.invalid> (raw)
In-Reply-To: 87oeb2c2x5.fsf@tiger.rapttech.com.au

Tim X <timx@spamto.devnul.com> 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
<click on "About ITD">

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

  parent reply	other threads:[~2005-05-23  8:30 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-22 11:05 Emacs 21 and w3 on Debian Tim X
2005-05-22 20:14 ` Thierry Emery
2005-05-22 22:27   ` Tim X
2005-05-23  7:49     ` Tim X
     [not found]     ` <d6rt02$cho$1@news.sap-ag.de>
2005-05-23  7:53       ` Tim X
2005-05-23  9:09         ` Thierry Emery
     [not found]           ` <d6sa8f$mmu$1@news.sap-ag.de>
2005-05-23 17:22             ` Thierry Emery
2005-05-24  5:48               ` Klaus Straubinger
2005-05-24 16:39                 ` Thierry Emery
2005-05-24  8:19           ` Tim X
     [not found]           ` <d71mbu$ka$1@news.sap-ag.de>
2005-05-25 17:28             ` Thierry Emery
2005-05-26 10:11               ` Thierry Emery
2005-05-27  6:15                 ` Klaus Straubinger
2005-05-27 19:09                   ` Thierry Emery
2005-05-30  6:33                     ` Klaus Straubinger
2005-05-25 17:52             ` Kevin Rodgers
     [not found]             ` <mailman.1793.1117044330.25862.help-gnu-emacs@gnu.org>
2005-05-27  6:29               ` Klaus Straubinger
2005-05-27 16:35                 ` Kevin Rodgers
     [not found]                 ` <mailman.2099.1117212347.25862.help-gnu-emacs@gnu.org>
2005-05-30  6:26                   ` Klaus Straubinger
2005-05-31 16:41                     ` Kevin Rodgers
     [not found]                     ` <mailman.2623.1117558050.25862.help-gnu-emacs@gnu.org>
2005-06-01  6:19                       ` Klaus Straubinger
2005-06-01 15:57                         ` Stefan Monnier
2005-06-02  6:42                           ` Klaus Straubinger
2005-06-05 23:08                             ` Stefan Monnier
2005-06-01 15:55                       ` Stefan Monnier
     [not found]         ` <d6s5b2$itm$1@news.sap-ag.de>
2005-05-24  8:17           ` Tim X
2005-05-23  8:30     ` Thierry Emery [this message]
     [not found]       ` <d6s68c$jsf$1@news.sap-ag.de>
2005-05-23  9:57         ` Thierry Emery
     [not found]           ` <d6sble$nnv$1@news.sap-ag.de>
2005-05-23 17:25             ` Thierry Emery
2005-05-24  8:24       ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87psvipco6.fsf@spamfoil.invalid \
    --to=see.sig@spamfoil.invalid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.