]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffile_name_completion, file_name_completion): Use type test macros.
authorKarl Heuer <kwzh@gnu.org>
Tue, 27 Sep 1994 03:07:54 +0000 (03:07 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 27 Sep 1994 03:07:54 +0000 (03:07 +0000)
src/dired.c

index 8800db7c279a4df2c925cce7676eaec0b555d8b0..c9c4d6489905eb185aea7d698f513c7ee6644f63 100644 (file)
@@ -239,7 +239,7 @@ Returns nil if DIR contains no name starting with FILE.")
      a directory name and has supplied one ending in a /.
      We would not want to add anything in that case
      even if there are some unique characters in that directory.  */
-  if (XTYPE (file) == Lisp_String && XSTRING (file)->size == 0)
+  if (STRINGP (file) && XSTRING (file)->size == 0)
     return file;
 
   /* If the file name has special constructs in it,
@@ -362,7 +362,7 @@ file_name_completion (file, dirname, all_flag, ver_flag)
                     CONSP (tem); tem = XCONS (tem)->cdr)
                  {
                    elt = XCONS (tem)->car;
-                   if (XTYPE (elt) != Lisp_String) continue;
+                   if (!STRINGP (elt)) continue;
                    skip = len - XSTRING (elt)->size;
                    if (skip < 0) continue;