[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ffap -> emacs-w3m dropping of #anchor
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Thu, 04 Sep 2008 12:57:36 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 10352
- References: <87fxou5y5v.fsf@xxxxxxxxxxx>
>>>>> In [emacs-w3m : No.10333] jidanni@xxxxxxxxxxx wrote:
> If I do C-x C-f http://catless.ncl.ac.uk/Risks/25.29.html#subj13.1
> I end up at just http://catless.ncl.ac.uk/Risks/25.29.html
> If I do G or U http://catless.ncl.ac.uk/Risks/25.29.html#subj13.1
> I indeed get to that anchor.
> C-x C-f runs the command find-file-at-point, the rest of my
> customization is in http://jidanni.org/comp/configuration/
I don't know why `find-file-at-point' strips the #name portion
but it is done in the function `ffap-fixup-url'. A workaround:
(defadvice ffap-fixup-url (around dont-use-url-normalize-url activate)
"Don't use `url-normalize-url'."
(if (fboundp 'url-normalize-url)
(let ((unu (symbol-function 'url-normalize-url)))
(fmakunbound 'url-normalize-url)
(unwind-protect
ad-do-it
(fset 'url-normalize-url unu)))
ad-do-it))