[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

emacs-w3m with XEmacs 21.4.15 on Windows (native, not Cygwin)

I installed emacs-w3m a couple of weeks ago and really like it.

One thing was quite annoying, though.

Whenever emacs-w3m renders a page that contains relative links they wind
up looking something like this:

(Note the backslash after the server name)

Today I got around to looking deeper into it, and I think
I found a solution. Please take a look at the diff
below (w3m.el is from emacs-w3m-1.3.90.tar.gz):

--- w3m.el.orig      Tue Apr 20 02:56:54 2004
+++ w3m.el     Thu Apr 22 11:16:18 2004
@@ -5023,7 +5023,10 @@
              (inhibit-file-name-operation 'expand-file-name)
-         (setq path (expand-file-name name base))
+      (let ((def-sep-char directory-sep-char))
+        (setq directory-sep-char ?/)
+        (setq path (expand-file-name name base))
+        (setq directory-sep-char def-sep-char))
          (if (string-match "\\`.:" path)
              (substring path (match-end 0))

This patch works for me :-) I hope you find it useful.

Thanks for a great piece of software!

Christian Schmitt

Go to Athens, turn right, go 150km, stop at Delphi.
There's a Support Desk there that handles questions like this.
(Stephen J. Turnbull on xemacs-beta)