unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org
Subject: Re: ffap not UTF-8 ready
Date: Mon, 02 Oct 2006 16:22:19 +0900	[thread overview]
Message-ID: <E1GUI83-0008BW-00@etlken> (raw)
In-Reply-To: <E1GSrVS-0000rW-Qr@jidanni.org> (message from Dan Jacobson on Thu, 28 Sep 2006 16:44:34 +0800)

In article <E1GSrVS-0000rW-Qr@jidanni.org>, Dan Jacobson <jidanni@jidanni.org> 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
handa@m17n.org

       reply	other threads:[~2006-10-02  7:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1GSrVS-0000rW-Qr@jidanni.org>
2006-10-02  7:22 ` Kenichi Handa [this message]
2006-10-02 13:49   ` ffap not UTF-8 ready Stefan Monnier
2006-10-02 21:05   ` Kevin Ryde
2006-10-03  1:20     ` Kenichi Handa
     [not found]       ` <E1GUliX-0003XK-Lx@fencepost.gnu.org>
2006-10-03 23:26         ` Kenichi Handa
2006-10-04 16:22           ` Richard Stallman
2006-10-11 20:29           ` Richard Stallman
2006-10-12 15:48             ` Rajesh Vaidheeswarran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GUI83-0008BW-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).