aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-03-18 02:26:29 +0000
committerStefan Monnier2009-03-18 02:26:29 +0000
commit7519c40d29d58a1c19eac1c714a2222af7e8a6d2 (patch)
tree12ea1aee00a4a3da48d7b53f5bc96863fb1ed7c4
parent2cd298e2db4ef3cd64ee7553a21c4bd7f01f1cd4 (diff)
downloademacs-7519c40d29d58a1c19eac1c714a2222af7e8a6d2.tar.gz
emacs-7519c40d29d58a1c19eac1c714a2222af7e8a6d2.zip
(file_name_completion): Disable the first optimization just
installed, since it is not implemented correctly.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dired.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 35c81a87ac9..0c2b34a4ee6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * dired.c (file_name_completion): Disable the first optimization just
4 installed, since it is not implemented correctly.
5
12009-03-17 Stefan Monnier <monnier@iro.umontreal.ca> 62009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * dired.c (file_name_completion): Check completion-ignored-extensions 8 * dired.c (file_name_completion): Check completion-ignored-extensions
diff --git a/src/dired.c b/src/dired.c
index b6bc7067736..4beac6e50e4 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -538,6 +538,7 @@ file_name_completion (file, dirname, all_flag, ver_flag, predicate)
538 { 538 {
539 int skip; 539 int skip;
540 540
541#if 0 /* FIXME: The `scmp' call compares an encoded and a decoded string. */
541 /* If this entry matches the current bestmatch, the only 542 /* If this entry matches the current bestmatch, the only
542 thing it can do is increase matchcount, so don't bother 543 thing it can do is increase matchcount, so don't bother
543 investigating it any further. */ 544 investigating it any further. */
@@ -548,6 +549,7 @@ file_name_completion (file, dirname, all_flag, ver_flag, predicate)
548 && len >= bestmatchsize 549 && len >= bestmatchsize
549 && 0 > scmp (dp->d_name, SDATA (bestmatch), bestmatchsize)) 550 && 0 > scmp (dp->d_name, SDATA (bestmatch), bestmatchsize))
550 continue; 551 continue;
552#endif
551 553
552 if (directoryp) 554 if (directoryp)
553 { 555 {