From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ari Roponen Newsgroups: gmane.emacs.devel Subject: File name completion problem with non-ascii file names Date: Sun, 27 Apr 2008 13:36:15 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1209310684 1039 80.91.229.12 (27 Apr 2008 15:38:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2008 15:38:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 27 17:38:40 2008 connect(): Connection refused 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 1Jq8xX-0007E5-DA for ged-emacs-devel@m.gmane.org; Sun, 27 Apr 2008 17:38:35 +0200 Original-Received: from localhost ([127.0.0.1]:45527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jq8wr-0000dU-0U for ged-emacs-devel@m.gmane.org; Sun, 27 Apr 2008 11:37:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jq4na-0007wx-HY for emacs-devel@gnu.org; Sun, 27 Apr 2008 07:12:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jq4nV-0007st-Pq for emacs-devel@gnu.org; Sun, 27 Apr 2008 07:12:01 -0400 Original-Received: from [199.232.76.173] (port=36444 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jq4nV-0007so-Ji for emacs-devel@gnu.org; Sun, 27 Apr 2008 07:11:57 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jq4F8-00074O-E5 for emacs-devel@gnu.org; Sun, 27 Apr 2008 06:36:26 -0400 Original-Received: by nf-out-0910.google.com with SMTP id f5so1712215nfh.26 for ; Sun, 27 Apr 2008 03:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:message-id:user-agent:mime-version:content-type:content-transfer-encoding; bh=u9bfHz99nN7aPk8wNqX/IgIayhZuyYCsP/bMIWxcRd0=; b=F41oUZtPPoekmjmjf9dJx5HD6/abdqtOFFUZktHilbfsWoFl83e+7w1AHQ3QDKmAEID5WV1fR1M+VXC/os0EAa/l6lNwchVuYD4Y0p0+RAhAiCDRrqxmSJEoMkx2kynHAw8ZSeDk0SZacOGCx4M6A7KAjrHGhzZc7oOTCpBKw2o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version:content-type:content-transfer-encoding; b=ZwQ9GX/RIYb1tASEUCKu0sIFmKyiEmXTDX1vJFTzzCYFyjR9zq9CMSlvRcdY+eIxhRvIchoW7BhHxEmfKdc51ngpUc9q9VfJ7m84OYwR/JzuDsWDfez7it4J/z6fJbI7+iNNt9XGnWXzQ4JaRZYwKpbQhRxbcjRlAbOfTuWSLSY= Original-Received: by 10.210.58.13 with SMTP id g13mr4479127eba.144.1209292585205; Sun, 27 Apr 2008 03:36:25 -0700 (PDT) Original-Received: from arirop ( [88.195.184.136]) by mx.google.com with ESMTPS id 32sm6407503nfu.7.2008.04.27.03.36.23 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Apr 2008 03:36:24 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 27 Apr 2008 11:37:49 -0400 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:96004 Archived-At: Hi, when I use C-x C-f to visit a file, TAB-completion completes too much if there are non-ascii characters in file name. Here is a simple recipe to demonstrate the problem: (let ((default-directory temporary-file-directory)) (with-temp-file "p=C3=B6yt=C3=A4-1.txt" (insert "P=C3=B6yt=C3=A4 is a Finnish word for table.")) (with-temp-file "p=C3=B6yt=C3=A4-2.txt" (insert "Other file.")) (file-name-completion "p" ".")) ;; =3D> "p=C3=B6yt=C3=A4-1." =20=20=20=20 I expected the result to be "p=C3=B6yt=C3=A4-" without "1.", since there are two possible completions: (directory-files temporary-file-directory nil "^p") ;; =3D> ("p=C3=B6yt=C3=A4-1.txt" "p=C3=B6yt=C3=A4-2.txt") This problem shows up when I try to find the file with C-x C-f: C-x C-f /tmp/p TAB completes to "/tmp/p=C3=B6yt=C3=A4-1.". Second TAB completes to "/tmp/p=C3=B6yt=C3=A4-1.txt" and third displays "[sole completion]". I expected the first TAB complete to "/tmp/p=C3=B6yt=C3=A4-" and second TAB to display two possible completions. This happens on: GNU Emacs 23.0.60.6 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-04-26 on arirop Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t --=20 Ari Roponen