diff options
| author | Karl Heuer | 1994-04-22 23:41:18 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-22 23:41:18 +0000 |
| commit | a617e9133c6854861e327f90fe5f096a33abe4f3 (patch) | |
| tree | 846aa6dd31e6a28b763ae07e67f18ddc618b415d /src | |
| parent | 68395b70ec9564298aa91d5231f01388859666cb (diff) | |
| download | emacs-a617e9133c6854861e327f90fe5f096a33abe4f3.tar.gz emacs-a617e9133c6854861e327f90fe5f096a33abe4f3.zip | |
Pass operation to Ffind_file_name_handler.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 2 | ||||
| -rw-r--r-- | src/dired.c | 11 | ||||
| -rw-r--r-- | src/lread.c | 2 |
3 files changed, 6 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c index c9623cd4347..e7353d6c5bc 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -196,7 +196,7 @@ If there is no such live buffer, return nil.") | |||
| 196 | 196 | ||
| 197 | /* If the file name has special constructs in it, | 197 | /* If the file name has special constructs in it, |
| 198 | call the corresponding file handler. */ | 198 | call the corresponding file handler. */ |
| 199 | handler = Ffind_file_name_handler (filename); | 199 | handler = Ffind_file_name_handler (filename, Qget_file_buffer); |
| 200 | if (!NILP (handler)) | 200 | if (!NILP (handler)) |
| 201 | return call2 (handler, Qget_file_buffer, filename); | 201 | return call2 (handler, Qget_file_buffer, filename); |
| 202 | 202 | ||
diff --git a/src/dired.c b/src/dired.c index 6362aa95364..d8b9683514f 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -94,12 +94,9 @@ extern struct re_pattern_buffer searchbuf; | |||
| 94 | 94 | ||
| 95 | extern int completion_ignore_case; | 95 | extern int completion_ignore_case; |
| 96 | extern Lisp_Object Vcompletion_regexp_list; | 96 | extern Lisp_Object Vcompletion_regexp_list; |
| 97 | extern Lisp_Object Ffind_file_name_handler (); | ||
| 98 | 97 | ||
| 99 | Lisp_Object Vcompletion_ignored_extensions; | 98 | Lisp_Object Vcompletion_ignored_extensions; |
| 100 | |||
| 101 | Lisp_Object Qcompletion_ignore_case; | 99 | Lisp_Object Qcompletion_ignore_case; |
| 102 | |||
| 103 | Lisp_Object Qdirectory_files; | 100 | Lisp_Object Qdirectory_files; |
| 104 | Lisp_Object Qfile_name_completion; | 101 | Lisp_Object Qfile_name_completion; |
| 105 | Lisp_Object Qfile_name_all_completions; | 102 | Lisp_Object Qfile_name_all_completions; |
| @@ -122,7 +119,7 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.\n\ | |||
| 122 | 119 | ||
| 123 | /* If the file name has special constructs in it, | 120 | /* If the file name has special constructs in it, |
| 124 | call the corresponding file handler. */ | 121 | call the corresponding file handler. */ |
| 125 | handler = Ffind_file_name_handler (dirname); | 122 | handler = Ffind_file_name_handler (dirname, Qdirectory_files); |
| 126 | if (!NILP (handler)) | 123 | if (!NILP (handler)) |
| 127 | { | 124 | { |
| 128 | Lisp_Object args[6]; | 125 | Lisp_Object args[6]; |
| @@ -246,7 +243,7 @@ Returns nil if DIR contains no name starting with FILE.") | |||
| 246 | 243 | ||
| 247 | /* If the file name has special constructs in it, | 244 | /* If the file name has special constructs in it, |
| 248 | call the corresponding file handler. */ | 245 | call the corresponding file handler. */ |
| 249 | handler = Ffind_file_name_handler (dirname); | 246 | handler = Ffind_file_name_handler (dirname, Qfile_name_completion); |
| 250 | if (!NILP (handler)) | 247 | if (!NILP (handler)) |
| 251 | return call3 (handler, Qfile_name_completion, file, dirname); | 248 | return call3 (handler, Qfile_name_completion, file, dirname); |
| 252 | 249 | ||
| @@ -264,7 +261,7 @@ These are all file names in directory DIR which begin with FILE.") | |||
| 264 | 261 | ||
| 265 | /* If the file name has special constructs in it, | 262 | /* If the file name has special constructs in it, |
| 266 | call the corresponding file handler. */ | 263 | call the corresponding file handler. */ |
| 267 | handler = Ffind_file_name_handler (dirname); | 264 | handler = Ffind_file_name_handler (dirname, Qfile_name_all_completions); |
| 268 | if (!NILP (handler)) | 265 | if (!NILP (handler)) |
| 269 | return call3 (handler, Qfile_name_all_completions, file, dirname); | 266 | return call3 (handler, Qfile_name_all_completions, file, dirname); |
| 270 | 267 | ||
| @@ -594,7 +591,7 @@ If file does not exist, returns nil.") | |||
| 594 | 591 | ||
| 595 | /* If the file name has special constructs in it, | 592 | /* If the file name has special constructs in it, |
| 596 | call the corresponding file handler. */ | 593 | call the corresponding file handler. */ |
| 597 | handler = Ffind_file_name_handler (filename); | 594 | handler = Ffind_file_name_handler (filename, Qfile_attributes); |
| 598 | if (!NILP (handler)) | 595 | if (!NILP (handler)) |
| 599 | return call2 (handler, Qfile_attributes, filename); | 596 | return call2 (handler, Qfile_attributes, filename); |
| 600 | 597 | ||
diff --git a/src/lread.c b/src/lread.c index c5185eebb00..bf6b1f4a2ba 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -350,7 +350,7 @@ Return t if file exists.") | |||
| 350 | str = Fsubstitute_in_file_name (str); | 350 | str = Fsubstitute_in_file_name (str); |
| 351 | 351 | ||
| 352 | /* If file name is magic, call the handler. */ | 352 | /* If file name is magic, call the handler. */ |
| 353 | handler = Ffind_file_name_handler (str); | 353 | handler = Ffind_file_name_handler (str, Qload); |
| 354 | if (!NILP (handler)) | 354 | if (!NILP (handler)) |
| 355 | return call5 (handler, Qload, str, noerror, nomessage, nosuffix); | 355 | return call5 (handler, Qload, str, noerror, nomessage, nosuffix); |
| 356 | 356 | ||