(directory_files_internal): Don't expand directory.
authorKai Großjohann <kgrossjo@eu.uu.net>
Sun, 23 Feb 2003 10:48:29 +0000 (10:48 +0000)
committerKai Großjohann <kgrossjo@eu.uu.net>
Sun, 23 Feb 2003 10:48:29 +0000 (10:48 +0000)
(Fdirectory_files, Fdirectory_files_and_attributes): Do it here
instead.  From Lars Hansen <larsh@math.ku.dk>.

src/ChangeLog
src/dired.c

index 40d5ffc..7d27e0b 100644 (file)
@@ -1,3 +1,9 @@
+2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
+
+       * dired.c (directory_files_internal): Don't expand directory.
+       (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
+       instead.  From Lars Hansen <larsh@math.ku.dk>.
+
 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
 
        * fns.c (string_to_multibyte): Remove unused var i.
index 54f96ba..bf2a0e4 100644 (file)
@@ -153,7 +153,6 @@ directory_files_internal (directory, full, match, nosort, attrs)
      Ffuncall, and cause a GC.  */
   list = encoded_directory = dirfilename = Qnil;
   GCPRO5 (match, directory, list, dirfilename, encoded_directory);
-  directory = Fexpand_file_name (directory, Qnil);
   dirfilename = Fdirectory_file_name (directory);
 
   if (!NILP (match))
@@ -345,6 +344,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
      Lisp_Object directory, full, match, nosort;
 {
   Lisp_Object handler;
+  directory = Fexpand_file_name (directory, Qnil);
 
   /* If the file name has special constructs in it,
      call the corresponding file handler.  */
@@ -378,6 +378,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
      Lisp_Object directory, full, match, nosort;
 {
   Lisp_Object handler;
+  directory = Fexpand_file_name (directory, Qnil);
 
   /* If the file name has special constructs in it,
      call the corresponding file handler.  */