(file_name_completion): Disable the first optimization just
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 18 Mar 2009 02:26:29 +0000 (02:26 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 18 Mar 2009 02:26:29 +0000 (02:26 +0000)
installed, since it is not implemented correctly.

src/ChangeLog
src/dired.c

index 35c81a8..0c2b34a 100644 (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
index b6bc706..4beac6e 100644 (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)
            {