# HG changeset patch # User Karl Heuer # Date 767058078 0 # Node ID 6915bf781a3817b7beaf6e18e32ca277706f97bb # Parent 1b662238db6f31060c30082c7ee89e176e6e249e Pass operation to Ffind_file_name_handler. diff -r 1b662238db6f -r 6915bf781a38 lisp/diff.el --- a/lisp/diff.el Fri Apr 22 21:53:27 1994 +0000 +++ b/lisp/diff.el Fri Apr 22 23:41:18 1994 +0000 @@ -254,7 +254,7 @@ (defun diff-latest-backup-file (fn) ; actually belongs into files.el "Return the latest existing backup of FILE, or nil." - (let ((handler (find-file-name-handler fn))) + (let ((handler (find-file-name-handler fn 'diff-latest-backup-file))) (if handler (funcall handler 'diff-latest-backup-file fn) ;; First try simple backup, then the highest numbered of the diff -r 1b662238db6f -r 6915bf781a38 src/buffer.c --- a/src/buffer.c Fri Apr 22 21:53:27 1994 +0000 +++ b/src/buffer.c Fri Apr 22 23:41:18 1994 +0000 @@ -196,7 +196,7 @@ /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (filename); + handler = Ffind_file_name_handler (filename, Qget_file_buffer); if (!NILP (handler)) return call2 (handler, Qget_file_buffer, filename); diff -r 1b662238db6f -r 6915bf781a38 src/dired.c --- a/src/dired.c Fri Apr 22 21:53:27 1994 +0000 +++ b/src/dired.c Fri Apr 22 23:41:18 1994 +0000 @@ -94,12 +94,9 @@ extern int completion_ignore_case; extern Lisp_Object Vcompletion_regexp_list; -extern Lisp_Object Ffind_file_name_handler (); Lisp_Object Vcompletion_ignored_extensions; - Lisp_Object Qcompletion_ignore_case; - Lisp_Object Qdirectory_files; Lisp_Object Qfile_name_completion; Lisp_Object Qfile_name_all_completions; @@ -122,7 +119,7 @@ /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (dirname); + handler = Ffind_file_name_handler (dirname, Qdirectory_files); if (!NILP (handler)) { Lisp_Object args[6]; @@ -246,7 +243,7 @@ /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (dirname); + handler = Ffind_file_name_handler (dirname, Qfile_name_completion); if (!NILP (handler)) return call3 (handler, Qfile_name_completion, file, dirname); @@ -264,7 +261,7 @@ /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (dirname); + handler = Ffind_file_name_handler (dirname, Qfile_name_all_completions); if (!NILP (handler)) return call3 (handler, Qfile_name_all_completions, file, dirname); @@ -594,7 +591,7 @@ /* If the file name has special constructs in it, call the corresponding file handler. */ - handler = Ffind_file_name_handler (filename); + handler = Ffind_file_name_handler (filename, Qfile_attributes); if (!NILP (handler)) return call2 (handler, Qfile_attributes, filename); diff -r 1b662238db6f -r 6915bf781a38 src/lread.c --- a/src/lread.c Fri Apr 22 21:53:27 1994 +0000 +++ b/src/lread.c Fri Apr 22 23:41:18 1994 +0000 @@ -350,7 +350,7 @@ str = Fsubstitute_in_file_name (str); /* If file name is magic, call the handler. */ - handler = Ffind_file_name_handler (str); + handler = Ffind_file_name_handler (str, Qload); if (!NILP (handler)) return call5 (handler, Qload, str, noerror, nomessage, nosuffix);