Commit 1c56232f authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(file_name_completion): Pass dp->d_name to

Fstring_match, not elt, which is alays nil here.
parent 1d2b2268
2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
* dired.c (file_name_completion): Pass dp->d_name to
Fstring_match, not elt, which is always nil here.
2001-07-12 Gerd Moellmann <gerd@gnu.org>
* xselect.c (x_decline_selection_request): Handle errors
......
......@@ -595,7 +595,8 @@ file_name_completion (file, dirname, all_flag, ver_flag)
for (regexps = Vcompletion_regexp_list; CONSP (regexps);
regexps = XCDR (regexps))
{
tem = Fstring_match (XCAR (regexps), elt, zero);
tem = Fstring_match (XCAR (regexps),
make_string (dp->d_name, len), zero);
if (NILP (tem))
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment