From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [cloos@jhcloos.com: Re: [jidanni@jidanni.org: ffap not UTF-8 ready]] Date: Wed, 10 Jan 2007 18:05:59 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1168470487 25827 80.91.229.12 (10 Jan 2007 23:08:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2007 23:08:07 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 11 00:08:05 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H4mY0-0006bQ-4z for ged-emacs-devel@m.gmane.org; Thu, 11 Jan 2007 00:07:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4mXz-0006hN-Qp for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2007 18:07:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4mWd-00067M-L7 for emacs-devel@gnu.org; Wed, 10 Jan 2007 18:06:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4mWd-00066w-2c for emacs-devel@gnu.org; Wed, 10 Jan 2007 18:06:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4mWc-00066t-VL for emacs-devel@gnu.org; Wed, 10 Jan 2007 18:06:31 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4mWc-0001Fd-Dz for emacs-devel@gnu.org; Wed, 10 Jan 2007 18:06:30 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1H4mW7-0000ae-2T; Wed, 10 Jan 2007 18:05:59 -0500 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65138 Archived-At: [I sent this message twice but did not get a response.] Would someone please DTRT and ack? ------- Start of forwarded message ------- From: James Cloos To: emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Tue\, 26 Dec 2006 12\:22\:29 -0500") Copyright: Copyright 2006 James Cloos Date: Tue, 26 Dec 2006 13:58:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: rms@gnu.org Subject: Re: [jidanni@jidanni.org: ffap not UTF-8 ready] X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=failed version=3.0.4 |> ffap is not UTF-8 ready, I put the cursor on ./???? or whatever and it |> acts like the file Doesn't exist. I tried it on several filenames (all of which exist on my filesystem). On every file where the first character was ASCII and was not modified by a combining character, ffap worked as expected. But on every file where the second character was a combining character (such as the file named C?.utf8 -- that is a C followed by U+0336, which is called COMBINING LONG STROKE OVERLAY) ffap failed to recognize the string as being a filename. It also failed when the string started with a non-ASCII character, such as a kanji or a greek character. Some testing shows that (ffap-string-at-point) skips strings such as those described above. I guess this is because of the default value of ffap-string-at-point-mode-alist. For finding files it looks for strings of "--:$+<>@-Z_a-z~*?", dropping "<@" from the beginning and dropping "@>;.,!:" from the end. That first string needs to be expanded to support non-ASCII characters which might be used for filenames. - -JimC - -- James Cloos OpenPGP: 1024D/ED7DAEA6 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------- End of forwarded message -------