[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
File name completion problem with non-ascii file names
From: |
Ari Roponen |
Subject: |
File name completion problem with non-ascii file names |
Date: |
Sun, 27 Apr 2008 13:36:15 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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öytä-1.txt"
(insert "Pöytä is a Finnish word for table."))
(with-temp-file "pöytä-2.txt"
(insert "Other file."))
(file-name-completion "p" "."))
;; => "pöytä-1."
I expected the result to be "pöytä-" without "1.", since there
are two possible completions:
(directory-files temporary-file-directory nil "^p")
;; => ("pöytä-1.txt" "pöytä-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öytä-1.". Second TAB completes
to "/tmp/pöytä-1.txt" and third displays "[sole completion]". I
expected the first TAB complete to "/tmp/pöytä-" 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
--
Ari Roponen
- File name completion problem with non-ascii file names,
Ari Roponen <=