[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: anchors containing spaces not recognised
- From: Hideyuki SHIRAI <shirai@xxxxxxxxxxx>
- Date: Thu, 25 Aug 2005 17:44:31 +0900 (JST)
- X-ml-name: emacs-w3m
- X-mail-count: 08364
- References: <lymzn6h1zr.fsf@tanto.lshift.net>
From: Matthias Radestock <matthias@sorted.org> said
Subject: [emacs-w3m:08363] anchors containing spaces not recognised
Message-ID: <lymzn6h1zr.fsf@tanto.lshift.net>
Date: Thu, 25 Aug 2005 09:09:12 +0100
> it looks like emacs-w3m fails to recognise anchors containing spaces.
>
> Take for instance
> http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html
> It contains the reference
> <A HREF="../../java/io/OutputStream.html#write(byte[], int, int)">write</A>
> The corresponding anchor is declared as
> <A NAME="write(byte[], int, int)"><!-- --></A>
> Trying to navigate to the anchor produces a "No such anchor" error.
Thanks, your report.
I fix it probably. Please try this patch for emacs-w3m CVS Head.
--
Hideyuki SHIRAI (mailto:shirai@meadowy.org)
--- w3m.el 08 Aug 2005 20:05:34 +0900 1.983
+++ w3m.el 25 Aug 2005 17:39:37 +0900
@@ -3077,7 +3077,9 @@
(delete-region start (point))
(w3m-add-text-properties start (point-max)
(list 'w3m-name-anchor
- (cons id prenames)))))
+ (cons
+ (w3m-url-transfer-encode-string id)
+ prenames)))))
(goto-char (point-min))
(while (re-search-forward "<a[ \t\r\f\n]+" nil t)
(setq start (match-beginning 0))
@@ -3138,11 +3140,15 @@
(when name
(w3m-add-text-properties start (point-max)
(list 'w3m-name-anchor2
- (cons name prenames))))))
+ (cons
+ (w3m-url-transfer-encode-string name)
+ prenames))))))
(name
(w3m-add-text-properties start (point-max)
(list 'w3m-name-anchor2
- (cons name prenames)))))))
+ (cons
+ (w3m-url-transfer-encode-string name)
+ prenames)))))))
(when w3m-icon-data
(setq w3m-icon-data (cons (w3m-expand-url (car w3m-icon-data))
(or (w3m-image-type (cdr w3m-icon-data))
もうちょっとしたら会社でないといけないのと、cs をどうする?
があるので、commit はまた今度。では、池袋で。:-)