comparison src/dired.c @ 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 83645a5b04ce
children 934f6fb6fd8a
comparison
equal deleted inserted replaced
54904:a23bbf466906 54905:da06b9bd886b
912 912
913 /* If the file name has special constructs in it, 913 /* If the file name has special constructs in it,
914 call the corresponding file handler. */ 914 call the corresponding file handler. */
915 handler = Ffind_file_name_handler (filename, Qfile_attributes); 915 handler = Ffind_file_name_handler (filename, Qfile_attributes);
916 if (!NILP (handler)) 916 if (!NILP (handler))
917 return call3 (handler, Qfile_attributes, filename, id_format); 917 { /* Only pass the extra arg if it is used to help backward compatibility
918 with old file handlers which do not implement the new arg. --Stef */
919 if (NILP (id_format))
920 return call2 (handler, Qfile_attributes, filename);
921 else
922 return call3 (handler, Qfile_attributes, filename, id_format);
923 }
918 924
919 encoded = ENCODE_FILE (filename); 925 encoded = ENCODE_FILE (filename);
920 926
921 if (lstat (SDATA (encoded), &s) < 0) 927 if (lstat (SDATA (encoded), &s) < 0)
922 return Qnil; 928 return Qnil;