# HG changeset patch # User Richard M. Stallman # Date 810004793 0 # Node ID 7c38c6da4aaed5843a9d31edd58759d5ccc5e4e8 # Parent ed39ba26313bb35075f01d71e14b86a6c9f80fe7 (Ffile_name_all_completions, Ffile_name_completion): Look for handler for FILE as well as for DIRNAME. diff -r ed39ba26313b -r 7c38c6da4aae src/dired.c --- a/src/dired.c Fri Sep 01 18:43:30 1995 +0000 +++ b/src/dired.c Sat Sep 02 01:19:53 1995 +0000 @@ -236,9 +236,15 @@ { Lisp_Object handler; + /* If the directory name has special constructs in it, + call the corresponding file handler. */ + handler = Ffind_file_name_handler (dirname, Qfile_name_completion); + if (!NILP (handler)) + return call3 (handler, Qfile_name_completion, file, dirname); + /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (dirname, Qfile_name_completion); + handler = Ffind_file_name_handler (file, Qfile_name_completion); if (!NILP (handler)) return call3 (handler, Qfile_name_completion, file, dirname); @@ -254,9 +260,15 @@ { Lisp_Object handler; + /* If the directory name has special constructs in it, + call the corresponding file handler. */ + handler = Ffind_file_name_handler (dirname, Qfile_name_all_completions); + if (!NILP (handler)) + return call3 (handler, Qfile_name_all_completions, file, dirname); + /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (dirname, Qfile_name_all_completions); + handler = Ffind_file_name_handler (file, Qfile_name_all_completions); if (!NILP (handler)) return call3 (handler, Qfile_name_all_completions, file, dirname);