changeset 54905:da06b9bd886b handa-temp-tag

(Ffile_attributes): Don't pass extra nil arg to file-handler.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 15 Apr 2004 21:02:33 +0000
parents a23bbf466906
children dfa3317697a0
files src/dired.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Thu Apr 15 20:46:54 2004 +0000
+++ b/src/dired.c	Thu Apr 15 21:02:33 2004 +0000
@@ -914,7 +914,13 @@
      call the corresponding file handler.  */
   handler = Ffind_file_name_handler (filename, Qfile_attributes);
   if (!NILP (handler))
-    return call3 (handler, Qfile_attributes, filename, id_format);
+    { /* Only pass the extra arg if it is used to help backward compatibility
+	 with old file handlers which do not implement the new arg.  --Stef  */
+      if (NILP (id_format))
+	return call2 (handler, Qfile_attributes, filename);
+      else
+	return call3 (handler, Qfile_attributes, filename, id_format);
+    }
 
   encoded = ENCODE_FILE (filename);