aboutsummaryrefslogtreecommitdiffstats
path: root/src/dired.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c27
1 files changed, 4 insertions, 23 deletions
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}