]> code.delx.au - gnu-emacs/blobdiff - src/dired.c
*** empty log message ***
[gnu-emacs] / src / dired.c
index f4102ff6edbb65d54987c204c86564e77e85c5d2..e833ceb216bdce411cc3542678f53d09feca7f26 100644 (file)
@@ -914,7 +914,13 @@ Elements of the attribute list are:
      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);