(file_name_completion): Disable the first optimization just

installed, since it is not implemented correctly.
This commit is contained in:
Stefan Monnier 2009-03-18 02:26:29 +00:00
parent 2cd298e2db
commit 7519c40d29
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
* dired.c (file_name_completion): Disable the first optimization just
installed, since it is not implemented correctly.
2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
* dired.c (file_name_completion): Check completion-ignored-extensions

View file

@ -538,6 +538,7 @@ file_name_completion (file, dirname, all_flag, ver_flag, predicate)
{
int skip;
#if 0 /* FIXME: The `scmp' call compares an encoded and a decoded string. */
/* If this entry matches the current bestmatch, the only
thing it can do is increase matchcount, so don't bother
investigating it any further. */
@ -548,6 +549,7 @@ file_name_completion (file, dirname, all_flag, ver_flag, predicate)
&& len >= bestmatchsize
&& 0 > scmp (dp->d_name, SDATA (bestmatch), bestmatchsize))
continue;
#endif
if (directoryp)
{