comparison src/dired.c @ 1681:a03b87a92614

* fileio.c (find_file_handler): Rename this to Ffind_file_name_handler, and make it visible to lisp. Add a QUIT to the loop which scans file-name-handler-alist. All uses changed. (syms_of_fileio): Mention this new function in the docstring for Vfile_name_handler_alist. defsubr Sfind_file_name_handler. * lisp.h (Ffind_file_name_handler): Added extern declaration. * dired.c: All uses of find_file_handler changed here too.
author Jim Blandy <jimb@redhat.com>
date Sat, 12 Dec 1992 15:35:12 +0000
parents 0e105bd23f44
children cb164a9e44ba
comparison
equal deleted inserted replaced
1680:ea9f3949f153 1681:a03b87a92614
65 65
66 #ifndef S_IFLNK 66 #ifndef S_IFLNK
67 #define lstat stat 67 #define lstat stat
68 #endif 68 #endif
69 69
70 extern Lisp_Object find_file_handler (); 70 extern Lisp_Object Ffind_file_name_handler ();
71 71
72 Lisp_Object Vcompletion_ignored_extensions; 72 Lisp_Object Vcompletion_ignored_extensions;
73 73
74 Lisp_Object Qcompletion_ignore_case; 74 Lisp_Object Qcompletion_ignore_case;
75 75
93 Lisp_Object list, name; 93 Lisp_Object list, name;
94 Lisp_Object handler; 94 Lisp_Object handler;
95 95
96 /* If the file name has special constructs in it, 96 /* If the file name has special constructs in it,
97 call the corresponding file handler. */ 97 call the corresponding file handler. */
98 handler = find_file_handler (dirname); 98 handler = Ffind_file_name_handler (dirname);
99 if (!NILP (handler)) 99 if (!NILP (handler))
100 { 100 {
101 Lisp_Object args[6]; 101 Lisp_Object args[6];
102 102
103 args[0] = handler; 103 args[0] = handler;
197 if (XTYPE (file) == Lisp_String && XSTRING (file)->size == 0) 197 if (XTYPE (file) == Lisp_String && XSTRING (file)->size == 0)
198 return file; 198 return file;
199 199
200 /* If the file name has special constructs in it, 200 /* If the file name has special constructs in it,
201 call the corresponding file handler. */ 201 call the corresponding file handler. */
202 handler = find_file_handler (dirname); 202 handler = Ffind_file_name_handler (dirname);
203 if (!NILP (handler)) 203 if (!NILP (handler))
204 return call3 (handler, Qfile_name_completion, file, dirname); 204 return call3 (handler, Qfile_name_completion, file, dirname);
205 205
206 return file_name_completion (file, dirname, 0, 0); 206 return file_name_completion (file, dirname, 0, 0);
207 } 207 }
215 { 215 {
216 Lisp_Object handler; 216 Lisp_Object handler;
217 217
218 /* If the file name has special constructs in it, 218 /* If the file name has special constructs in it,
219 call the corresponding file handler. */ 219 call the corresponding file handler. */
220 handler = find_file_handler (dirname); 220 handler = Ffind_file_name_handler (dirname);
221 if (!NILP (handler)) 221 if (!NILP (handler))
222 return call3 (handler, Qfile_name_all_completions, file, dirname); 222 return call3 (handler, Qfile_name_all_completions, file, dirname);
223 223
224 return file_name_completion (file, dirname, 1, 0); 224 return file_name_completion (file, dirname, 1, 0);
225 } 225 }
487 487
488 filename = Fexpand_file_name (filename, Qnil); 488 filename = Fexpand_file_name (filename, Qnil);
489 489
490 /* If the file name has special constructs in it, 490 /* If the file name has special constructs in it,
491 call the corresponding file handler. */ 491 call the corresponding file handler. */
492 handler = find_file_handler (filename); 492 handler = Ffind_file_name_handler (filename);
493 if (!NILP (handler)) 493 if (!NILP (handler))
494 return call2 (handler, Qfile_attributes, filename); 494 return call2 (handler, Qfile_attributes, filename);
495 495
496 if (lstat (XSTRING (filename)->data, &s) < 0) 496 if (lstat (XSTRING (filename)->data, &s) < 0)
497 return Qnil; 497 return Qnil;