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

Re: w3m-goto-url vs. non-ASCII



>>>>> In [emacs-w3m : No.10204] jidanni@xxxxxxxxxxx wrote:

> U runs the command w3m-goto-url
> but when the cursor is upon the link
> http://www.coolloud.org.tw/tag/移民工/feed
> it only prompts with
> http://www.coolloud.org.tw/tag/
> apparently unable to deal with the non-ASCII.

Besause emacs-w3m uses the `ffap-url-at-point' function, what
should be improved is the url element of the variable
`ffap-string-at-point-mode-alist' defined in ffap.el.  For
instance:

(eval-after-load "ffap"
  '(setcar (cdr (assq 'url ffap-string-at-point-mode-alist))
	   "--:=&?$+@-Z_[:lower:][:multibyte:]~#,%;*"))

It defaults to "--:=&?$+@-Z_[:lower:]~#,%;*" which does not
match non-ASCII characters.