diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2004-04-15 21:02:33 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2004-04-15 21:02:33 +0000 |
commit | be3a846bd25311e180a74066c229c15ad690f0f4 (patch) | |
tree | ef8badc046e057703c1cf801b16e5719e7c08fda | |
parent | cca16940be2c22df4652f222c7d4ac6c74885db2 (diff) | |
download | emacs-be3a846bd25311e180a74066c229c15ad690f0f4.tar.gz |
(Ffile_attributes): Don't pass extra nil arg to file-handler.handa-temp-tag
-rw-r--r-- | src/dired.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dired.c b/src/dired.c index f4102ff6edb..e833ceb216b 100644 --- a/src/dired.c +++ b/src/dired.c @@ -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); |