Subject: bug#357 closed by Stefan Monnier <[email-masked]> (Re: ffap-string-at-point-mode-alist should include multibyte )

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#357: ffap-string-at-point-mode-alist should include multibyte

It has been closed by Stefan Monnier <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Stefan Monnier <[email-masked]> by
replying to this email.

-- 
357: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=357
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Tue Jun 10 12:35:53 2008
From: Stefan Monnier <[email-masked]>
To: [email-masked]
Subject: Re: ffap-string-at-point-mode-alist should include multibyte 
Date: Tue, 10 Jun 2008 15:35:44 -0400

I've installed the following patch instead, which seems to work as well.

        Stefan

=== modified file 'lisp/ffap.el'
--- lisp/ffap.el	2008-06-06 06:58:42 +0000
+++ lisp/ffap.el	2008-06-10 19:32:25 +0000
@@ -978,11 +978,11 @@
     ;; Slightly controversial decisions:
     ;; * strip trailing "@" and ":"
     ;; * no commas (good for latex)
-    (file "--:\\\\$+<>@-Z_[:lower:]~*?" "<@" "@>;.,!:")
+    (file "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
     ;; An url, or maybe a email/news message-id:
-    (url "--:=&?$+@-Z_[:lower:]~#,%;*" "^[:alnum:]" ":;.,!?")
+    (url "--:=&?$+@-Z_[:alpha:]~#,%;*" "^[:alnum:]" ":;.,!?")
     ;; Find a string that does *not* contain a colon:
-    (nocolon "--9$+<>@-Z_[:lower:]~" "<@" "@>;.,!?")
+    (nocolon "--9$+<>@-Z_[:alpha:]~" "<@" "@>;.,!?")
     ;; A machine:
     (machine "-[:alnum:]." "" ".")
     ;; Mathematica paths: allow backquotes

>From [email-masked] Tue Jun  3 17:47:29 2008
To: [email-masked]
Cc: [email-masked]
Subject: ffap-string-at-point-mode-alist should include multibyte
From: [email-masked]
Date: Wed, 04 Jun 2008 08:47:10 +0800

>>>>> "KY" =3D=3D Katsumi Yamaoka <[email-masked]> writes:

>>>>> In [emacs-w3m : No.10204] [email-masked] wrote:
>> U runs the command w3m-goto-url
>> but when the cursor is upon the link
>> http://www.coolloud.org.tw/tag/=E7=A7=BB=E6=B0=91=E5=B7=A5/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> 	   "--:=3D&?$+@-Z_[:lower:][:multibyte:]~#,%;*"))

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

OK, your workaround works.  I'm CCing this to bug-gnu-emacs.