aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Hansen2003-12-25 17:12:59 +0000
committerLars Hansen2003-12-25 17:12:59 +0000
commitb91485007d4c4fd637291364eecd363e1cecfa9d (patch)
tree3e67ca08a45adeba89cc35c9803fcea84bd0753e /src
parent67fafe38b4adee614a20f50d33849631e0ab82f5 (diff)
downloademacs-b91485007d4c4fd637291364eecd363e1cecfa9d.tar.gz
emacs-b91485007d4c4fd637291364eecd363e1cecfa9d.zip
(Fdirectory_files, Fdirectory_files_and_attributes):
Arguments GCPRO'ed in call to file name handler.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dired.c27
2 files changed, 9 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f3b9d0f81ea..1d153f72530 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12003-12-25 Lars Hansen <larsh@math.ku.dk>
2
3 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
4 Arguments GCPRO'ed in call to file name handler.
5
12003-12-25 Thien-Thi Nguyen <ttn@gnu.org> 62003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
2 7
3 * termcap.c (tgetst1): Scan for "%pN"; if all 8 * termcap.c (tgetst1): Scan for "%pN"; if all
diff --git a/src/dired.c b/src/dired.c
index 52a19f4fdc6..3bcd3051c25 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -359,17 +359,8 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
359 call the corresponding file handler. */ 359 call the corresponding file handler. */
360 handler = Ffind_file_name_handler (directory, Qdirectory_files); 360 handler = Ffind_file_name_handler (directory, Qdirectory_files);
361 if (!NILP (handler)) 361 if (!NILP (handler))
362 { 362 return call5 (handler, Qdirectory_files, directory,
363 Lisp_Object args[6]; 363 full, match, nosort);
364
365 args[0] = handler;
366 args[1] = Qdirectory_files;
367 args[2] = directory;
368 args[3] = full;
369 args[4] = match;
370 args[5] = nosort;
371 return Ffuncall (6, args);
372 }
373 364
374 return directory_files_internal (directory, full, match, nosort, 0, Qnil); 365 return directory_files_internal (directory, full, match, nosort, 0, Qnil);
375} 366}
@@ -395,18 +386,8 @@ ID-FORMAT specifies the preferred format of attributes uid and gid, see
395 call the corresponding file handler. */ 386 call the corresponding file handler. */
396 handler = Ffind_file_name_handler (directory, Qdirectory_files_and_attributes); 387 handler = Ffind_file_name_handler (directory, Qdirectory_files_and_attributes);
397 if (!NILP (handler)) 388 if (!NILP (handler))
398 { 389 return call6 (handler, Qdirectory_files_and_attributes,
399 Lisp_Object args[7]; 390 directory, full, match, nosort, id_format);
400
401 args[0] = handler;
402 args[1] = Qdirectory_files_and_attributes;
403 args[2] = directory;
404 args[3] = full;
405 args[4] = match;
406 args[5] = nosort;
407 args[6] = id_format;
408 return Ffuncall (7, args);
409 }
410 391
411 return directory_files_internal (directory, full, match, nosort, 1, id_format); 392 return directory_files_internal (directory, full, match, nosort, 1, id_format);
412} 393}