# HG changeset patch # User Stefan Monnier # Date 1082062953 0 # Node ID da06b9bd886b49b1760b5dc93789d29e601b3c27 # Parent a23bbf4669064784ec76c4b6e2e57705746e7149 (Ffile_attributes): Don't pass extra nil arg to file-handler. diff -r a23bbf466906 -r da06b9bd886b src/dired.c --- 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);