mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 09:51:22 -08:00
(Ffile_attributes): Don't pass extra nil arg to file-handler.
This commit is contained in:
parent
2a3d70d45d
commit
d8e18df75c
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue