emacs-pretest-bug
[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: Mon, 02 Oct 2006 16:22:19 +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>, Dan Jacobson <address@hidden> writes:

> Gentlemen, do
> $ touch aaa bbb 中文檔名
> $ emacs -Q -f ffap-bindings -f ffap-list-directory
> RET C-x o
> Now place the cursor on each filename and do C-x C-f and see what is
> shown in the minibuffer.

> Well, ffap knows about the ASCII filenames, but is unwilling to help
> with the Chinese UTF-8 filename.

It seems that this is because the variable
ffap-string-at-point-mode-alist doesn't contain a multibyte
character in CHARS.  Unfortunately, we don't have a handy
notation that represents all multibyte characters.

One way I can think of is to use negation as this:

Change
   (file "--:$+<>@-Z_a-z~*?" ...)
to
   (file "^\0-#%-),;=[-^`{-}\^?" ...)

Another way is to build a special syntax table (or a
category table) and use re-search-forward/backward instead
of skip-chars-forward/backward.

---
Kenichi Handa
address@hidden




reply via email to

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