diff options
| author | Kai Großjohann | 2003-02-23 10:48:29 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2003-02-23 10:48:29 +0000 |
| commit | 4ece81a62f81dfef3080f038d71ec74dda2562b2 (patch) | |
| tree | 4fc99ed202afea43d413230ff32ff72496a40f2a | |
| parent | 88e62d8875fd3db6ff97ced431bd6b1c3cea7148 (diff) | |
| download | emacs-4ece81a62f81dfef3080f038d71ec74dda2562b2.tar.gz emacs-4ece81a62f81dfef3080f038d71ec74dda2562b2.zip | |
(directory_files_internal): Don't expand directory.
(Fdirectory_files, Fdirectory_files_and_attributes): Do it here
instead. From Lars Hansen <larsh@math.ku.dk>.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/dired.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 40d5ffc48a5..7d27e0b53d8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2003-02-23 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> | ||
| 2 | |||
| 3 | * dired.c (directory_files_internal): Don't expand directory. | ||
| 4 | (Fdirectory_files, Fdirectory_files_and_attributes): Do it here | ||
| 5 | instead. From Lars Hansen <larsh@math.ku.dk>. | ||
| 6 | |||
| 1 | 2003-02-22 Stefan Monnier <monnier@cs.yale.edu> | 7 | 2003-02-22 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 8 | ||
| 3 | * fns.c (string_to_multibyte): Remove unused var i. | 9 | * fns.c (string_to_multibyte): Remove unused var i. |
diff --git a/src/dired.c b/src/dired.c index 54f96ba82f1..bf2a0e4e020 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -153,7 +153,6 @@ directory_files_internal (directory, full, match, nosort, attrs) | |||
| 153 | Ffuncall, and cause a GC. */ | 153 | Ffuncall, and cause a GC. */ |
| 154 | list = encoded_directory = dirfilename = Qnil; | 154 | list = encoded_directory = dirfilename = Qnil; |
| 155 | GCPRO5 (match, directory, list, dirfilename, encoded_directory); | 155 | GCPRO5 (match, directory, list, dirfilename, encoded_directory); |
| 156 | directory = Fexpand_file_name (directory, Qnil); | ||
| 157 | dirfilename = Fdirectory_file_name (directory); | 156 | dirfilename = Fdirectory_file_name (directory); |
| 158 | 157 | ||
| 159 | if (!NILP (match)) | 158 | if (!NILP (match)) |
| @@ -345,6 +344,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable. | |||
| 345 | Lisp_Object directory, full, match, nosort; | 344 | Lisp_Object directory, full, match, nosort; |
| 346 | { | 345 | { |
| 347 | Lisp_Object handler; | 346 | Lisp_Object handler; |
| 347 | directory = Fexpand_file_name (directory, Qnil); | ||
| 348 | 348 | ||
| 349 | /* If the file name has special constructs in it, | 349 | /* If the file name has special constructs in it, |
| 350 | call the corresponding file handler. */ | 350 | call the corresponding file handler. */ |
| @@ -378,6 +378,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable. | |||
| 378 | Lisp_Object directory, full, match, nosort; | 378 | Lisp_Object directory, full, match, nosort; |
| 379 | { | 379 | { |
| 380 | Lisp_Object handler; | 380 | Lisp_Object handler; |
| 381 | directory = Fexpand_file_name (directory, Qnil); | ||
| 381 | 382 | ||
| 382 | /* If the file name has special constructs in it, | 383 | /* If the file name has special constructs in it, |
| 383 | call the corresponding file handler. */ | 384 | call the corresponding file handler. */ |