GNU bug report logs -
#357
ffap-string-at-point-mode-alist should include multibyte
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Wed, 4 Jun 2008 00:55:04 UTC
Severity: normal
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 357 in the body.
You can then email your comments to 357 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#357
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
jidanni <at> jidanni.org
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
>>>>> "KY" == Katsumi Yamaoka <yamaoka <at> jpl.org> writes:
>>>>> In [emacs-w3m : No.10204] jidanni <at> jidanni.org 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.
Reply sent to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
jidanni <at> jidanni.org
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #10 received at 357-done <at> emacsbugs.donarmstrong.com (full text, mbox):
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
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Wed, 09 Jul 2008 14:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 17 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.