emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: case-insensitive partial-completion-mode issue]


From: Sven Joachim
Subject: Re: address@hidden: case-insensitive partial-completion-mode issue]
Date: Fri, 14 Dec 2007 22:52:30 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

On 2007-12-12 08:11 +0100, Andreas Röhler wrote:

> Am Dienstag, 11. Dezember 2007 20:00 schrieb Richard Stallman:
>>     > directory-files is supposed to ignore case
>>     > if the system treats file names as case-insensitive.
>>     > It does not obey case-fold-search.
>>     >
>>     >     ;;; ==> (MY-PATH/DIRECTORY/DIRECTORY/.
>>     > MY-PATH/DIRECTORY/DIRECTORY/.. MY-PATH/DIRECTORY/DIRECTORY/FILE.TXT)
>>     > [4 times]
>>     >
>>     > What system are you using?
>>
>>     Suse 10.2, GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
>> of 2007-12-09
>>
>> That is very strange!  On GNU/Linux, directory-files is supposed
>> to be case-sensitive.  And when I try it, it is case-sensitive.
>>
>>
>
> Meanwhile I discovered: with that test-form, Emacs not only
> reads case-insensitive all "[fF]", but the whole
> directory is grasped.

That's because your regexp was actually "[fF]*" which matches any
string, even an empty one, and thus any filename.  You want to use
something like "^[fF]" instead.

Sven




reply via email to

[Prev in Thread] Current Thread [Next in Thread]