changeset 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 9db628f75778
children 44b779e58de6
files src/dired.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Thu Jul 12 14:39:45 2001 +0000
+++ b/src/dired.c	Thu Jul 12 16:29:06 2001 +0000
@@ -595,7 +595,8 @@
 	      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;
 		}