[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ffap-string-at-point-mode-alist should include multibyte
- From: jidanni@xxxxxxxxxxx
- Date: Wed, 04 Jun 2008 08:47:10 +0800
- X-ml-name: emacs-w3m
- X-mail-count: 10206
- References: <b4m63sq82u5.fsf@xxxxxxx>
>>>>> "KY" == Katsumi Yamaoka <yamaoka@xxxxxxx> writes:
>>>>> 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.
KY> Besause emacs-w3m uses the `ffap-url-at-point' function, what
KY> should be improved is the url element of the variable
KY> `ffap-string-at-point-mode-alist' defined in ffap.el. For
KY> instance:
KY> (eval-after-load "ffap"
KY> '(setcar (cdr (assq 'url ffap-string-at-point-mode-alist))
KY> "--:=&?$+@-Z_[:lower:][:multibyte:]~#,%;*"))
KY> It defaults to "--:=&?$+@-Z_[:lower:]~#,%;*" which does not
KY> match non-ASCII characters.
OK, your workaround works. I'm CCing this to bug-gnu-emacs.