emacs-devel
[Top][All Lists]
Advanced

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

Re: ffap not UTF-8 ready


From: Kenichi Handa
Subject: Re: ffap not UTF-8 ready
Date: Tue, 03 Oct 2006 10:20:42 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, Kevin Ryde <address@hidden> writes:

> Kenichi Handa <address@hidden> writes:
> >
> > It seems that this is because the variable
> > ffap-string-at-point-mode-alist doesn't contain a multibyte
> > character in CHARS.

> Perhaps "(thing-at-point 'filename)", in thing-at-point-file-name-chars,
> has the same problem.

!! The variable thing-at-point-file-name-chars is defined as
    "-~/[:alnum:]_.${}#%,:".
I've forgotten about [:XXX:] notation.  I've just read
src/regex.c and found that [:alnum:] also works for
multibyte characters (it matches with a multibyte character
whose syntax is "word"), and [:multibyte:] is available too.
So, the current definition of thing-at-point-file-name-chars
works in most cases.  But, considering that a non-word
multibyte character can also be used in a file name,
perhaps, defining that as
   "-~/[:alnum:][:multibyte:]_.${}#%,:"
is better.

And, I think ffap.el should also use that kind of pattern
instead of something like this: "0-9A-Za-z".

---
Kenichi Handa
address@hidden




reply via email to

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