[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#657424: can't jump to some links anymore
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Thu, 26 Jan 2012 19:22:20 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 11746
- References: <8762fzvufv.fsf@xxxxxxxxxxx>
In [emacs-w3m : No.11744] jidanni@xxxxxxxxxxx wrote:
> X-debbugs-Cc: emacs-w3m@xxxxxxxxxx
> Package: w3m-el-snapshot
> Version: 1.4.463+0.20120113-1
> Upon upgrading from
> 1.4.442+0.20110729-1 to
> 1.4.463+0.20120113-1
> browsing e.g.,
> http://code.google.com/apis/maps/documentation/javascript/reference.html
> and then clicking on the link to #Circle does no longer take me there.
> The cursor doesn't move. But it will move for you:
> of course the bug is only observable if one loads my
> http://jidanni.org/comp/configuration/
> something in which is not compatible with the new version or something.
I've made a change in the emacs-w3m CVS so as to work for name
anchors again.
> Also if I save the file to disk and then browse it, the bug doesn't occur.
Hmm, I don't know why. Here's a diff of what I did:
--8<---------------cut here---------------start------------->8---
--- w3m.el~ 2012-01-13 08:21:42.281250000 +0000
+++ w3m.el 2012-01-26 10:13:26.351750000 +0000
@@ -9159,8 +9159,9 @@
(unless (or (w3m-url-local-p url)
(string-match "\\`about:" url))
(w3m-string-match-url-components url)
- (setq url (concat (w3m-url-transfer-encode-string
- (substring url 0 (match-beginning 8)))
+ (setq url (concat (save-match-data
+ (w3m-url-transfer-encode-string
+ (substring url 0 (match-beginning 8))))
(if (match-beginning 8)
(concat "#" (match-string 9 url))
""))))
--8<---------------cut here---------------end--------------->8---