From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22169: 25.0.50; File name compiletion doesn't work with non-ASCII characters on OS X Date: Wed, 16 Dec 2015 12:17:44 +0200 Message-ID: <83wpse1yuv.fsf@gnu.org> References: <83y4cw3kie.fsf@gnu.org> <83twnk3fg1.fsf@gnu.org> <83oads2x99.fsf@gnu.org> <83io3z3drh.fsf@gnu.org> <831tan32q2.fsf@gnu.org> <87d1u74bvi.fsf@fastmail.com> <83zixb1313.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1450261108 17797 80.91.229.3 (16 Dec 2015 10:18:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 10:18:28 +0000 (UTC) Cc: 22169@debbugs.gnu.org To: Random832 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 11:18:17 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a999v-0002nt-Th for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 11:18:12 +0100 Original-Received: from localhost ([::1]:46356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a999v-0005vT-9D for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 05:18:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a999r-0005vI-CU for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 05:18:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a999m-0002su-Bo for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 05:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a999m-0002sp-7w for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 05:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a999m-0005nL-4h for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 05:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Dec 2015 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22169-submit@debbugs.gnu.org id=B22169.145026105922241 (code B ref 22169); Wed, 16 Dec 2015 10:18:02 +0000 Original-Received: (at 22169) by debbugs.gnu.org; 16 Dec 2015 10:17:39 +0000 Original-Received: from localhost ([127.0.0.1]:53220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a999O-0005mf-S7 for submit@debbugs.gnu.org; Wed, 16 Dec 2015 05:17:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42911) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a999N-0005mR-W5 for 22169@debbugs.gnu.org; Wed, 16 Dec 2015 05:17:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a999D-0002oy-Jd for 22169@debbugs.gnu.org; Wed, 16 Dec 2015 05:17:32 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a999D-0002ou-G1; Wed, 16 Dec 2015 05:17:27 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4166 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a999C-0002b4-Sm; Wed, 16 Dec 2015 05:17:27 -0500 In-reply-to: (message from Random832 on Wed, 16 Dec 2015 00:05:40 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110048 Archived-At: > From: Random832 > Date: Wed, 16 Dec 2015 00:05:40 -0500 > > Anders, can you try this again from a clean emacs -Q session, and in > particular load ucs-normalize and set the coding system to utf-8-hfs > _before_ attempting any completion? I certainly hope so, thanks for testing. > Incidentally, I do get one other bit of bizarre behavior > associated with this. If I have multiple files that start with > the same base letter and different (or no) accents, pressing TAB > _deletes_ that letter. E.g. files: à1 á2 a3. C-x C-f a TAB, > deletes the "a". I guess some code is not ready to cope with a list of candidate completions some of which don't match the string-to-complete. Can you spot which code causes the deletion, and whether that is somehow related to file-name-all-completions returning all the 3 file names in this case? > I'd expect it to either offer all three filenames, or just a3. It's not really clear what is correct behavior in this case. On other platforms Emacs will return only a3, but HFS+ stores decomposed characters precisely to allow all 3 to match. So I think we should at least cause Emacs return only a3, and ideally also support the other behavior as an option. Btw, why is completion-ignore-case nil on HFS+? I understand it's a case-insensitive file system, isn't it? > Why exactly does completion do matching with encoded prefix > against raw filenames, rather than with unicode prefix against > decoded filenames, anyway? Performance: we don't want to decode every file name that readdir returns.