From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: ffap not UTF-8 ready Date: Mon, 02 Oct 2006 16:22:19 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1159773851 15631 80.91.229.2 (2 Oct 2006 07:24:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Oct 2006 07:24:11 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Mon Oct 02 09:24:08 2006 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GUI9l-0004Qf-1s for gebp-emacs-pretest-bug@gmane.org; Mon, 02 Oct 2006 09:24:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUI9k-0006tF-8f for gebp-emacs-pretest-bug@gmane.org; Mon, 02 Oct 2006 03:24:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GUI9h-0006sy-Rl for emacs-pretest-bug@gnu.org; Mon, 02 Oct 2006 03:24:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GUI9g-0006sj-E2 for emacs-pretest-bug@gnu.org; Mon, 02 Oct 2006 03:24:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUI9g-0006sg-7a; Mon, 02 Oct 2006 03:24:00 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GUIFb-0005mt-Jk; Mon, 02 Oct 2006 03:30:08 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k927Nex8011286; Mon, 2 Oct 2006 16:23:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k927Ndvv008177; Mon, 2 Oct 2006 16:23:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GUI83-0008BW-00; Mon, 02 Oct 2006 16:22:19 +0900 Original-To: Dan Jacobson In-reply-to: (message from Dan Jacobson on Thu, 28 Sep 2006 16:44:34 +0800) 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) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.pretest.bugs:14350 gmane.emacs.devel:60369 Archived-At: In article , Dan Jacobson writes: > Gentlemen, do > $ touch aaa bbb =E4=B8=AD=E6=96=87=E6=AA=94=E5=90=8D > $ 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-#%-),;=3D[-^`{-}\^?" ...) 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 handa@m17n.org