comparison src/fileio.c @ 22450:455438d7b6c7

(Finsert_file_contents): After calling handler, get INSERTED from the handler's value.
author Kenichi Handa <handa@m17n.org>
date Fri, 12 Jun 1998 08:35:09 +0000
parents dd560c810254
children 2da4749dc8cc
comparison
equal deleted inserted replaced
22449:c87830c691a5 22450:455438d7b6c7
3332 handler = Ffind_file_name_handler (filename, Qinsert_file_contents); 3332 handler = Ffind_file_name_handler (filename, Qinsert_file_contents);
3333 if (!NILP (handler)) 3333 if (!NILP (handler))
3334 { 3334 {
3335 val = call6 (handler, Qinsert_file_contents, filename, 3335 val = call6 (handler, Qinsert_file_contents, filename,
3336 visit, beg, end, replace); 3336 visit, beg, end, replace);
3337 if (CONSP (val) && CONSP (XCONS (val)->cdr))
3338 inserted = XINT (XCONS (XCONS (val)->cdr)->cdr);
3337 goto handled; 3339 goto handled;
3338 } 3340 }
3339 3341
3340 orig_filename = filename; 3342 orig_filename = filename;
3341 filename = ENCODE_FILE (filename); 3343 filename = ENCODE_FILE (filename);