Mercurial > emacs
comparison src/dired.c @ 38389:42fdd3d4d1ff
(file_name_completion): Pass dp->d_name to
Fstring_match, not elt, which is alays nil here.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 12 Jul 2001 16:29:06 +0000 |
parents | e2b1703a8fe8 |
children | e1f4b9b93c45 |
comparison
equal
deleted
inserted
replaced
38388:9db628f75778 | 38389:42fdd3d4d1ff |
---|---|
593 | 593 |
594 /* Ignore this element if it fails to match all the regexps. */ | 594 /* Ignore this element if it fails to match all the regexps. */ |
595 for (regexps = Vcompletion_regexp_list; CONSP (regexps); | 595 for (regexps = Vcompletion_regexp_list; CONSP (regexps); |
596 regexps = XCDR (regexps)) | 596 regexps = XCDR (regexps)) |
597 { | 597 { |
598 tem = Fstring_match (XCAR (regexps), elt, zero); | 598 tem = Fstring_match (XCAR (regexps), |
599 make_string (dp->d_name, len), zero); | |
599 if (NILP (tem)) | 600 if (NILP (tem)) |
600 break; | 601 break; |
601 } | 602 } |
602 if (CONSP (regexps)) | 603 if (CONSP (regexps)) |
603 continue; | 604 continue; |