bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#357: marked as done (ffap-string-at-point-mode-alist should include


From: Emacs bug Tracking System
Subject: bug#357: marked as done (ffap-string-at-point-mode-alist should include multibyte)
Date: Tue, 10 Jun 2008 12:45:08 -0700

Your message dated Tue, 10 Jun 2008 15:35:44 -0400
with message-id <address@hidden>
and subject line Re: ffap-string-at-point-mode-alist should include multibyte 
has caused the Emacs bug report #357,
regarding ffap-string-at-point-mode-alist should include multibyte
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden
immediately.)


-- 
357: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=357
Emacs Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ffap-string-at-point-mode-alist should include multibyte Date: Wed, 04 Jun 2008 08:47:10 +0800
>>>>> "KY" == Katsumi Yamaoka <address@hidden> writes:

>>>>> In [emacs-w3m : No.10204] address@hidden 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>        "--:=&address@hidden:lower:][:multibyte:]~#,%;*"))

KY> It defaults to "--:=&address@hidden:lower:]~#,%;*" which does not
KY> match non-ASCII characters.

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




--- End Message ---
--- Begin Message --- Subject: Re: ffap-string-at-point-mode-alist should include multibyte Date: Tue, 10 Jun 2008 15:35:44 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
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 "--:=&address@hidden:lower:]~#,%;*" "^[:alnum:]" ":;.,!?")
+    (url "--:=&address@hidden: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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]