3861 |
|
|
3862 |
if (!NILP (Vcoding_system_for_read)) |
if (!NILP (Vcoding_system_for_read)) |
3863 |
val = Vcoding_system_for_read; |
val = Vcoding_system_for_read; |
|
else if (! NILP (replace)) |
|
|
/* In REPLACE mode, we can use the same coding system |
|
|
that was used to visit the file. */ |
|
|
val = current_buffer->buffer_file_coding_system; |
|
3864 |
else |
else |
3865 |
{ |
{ |
3866 |
/* Don't try looking inside a file for a coding system |
/* Don't try looking inside a file for a coding system |
4639 |
|
|
4640 |
if (! NILP (Ffboundp (Qafter_insert_file_set_coding))) |
if (! NILP (Ffboundp (Qafter_insert_file_set_coding))) |
4641 |
{ |
{ |
4642 |
insval = call1 (Qafter_insert_file_set_coding, make_number (inserted)); |
insval = call2 (Qafter_insert_file_set_coding, make_number (inserted), |
4643 |
|
visit); |
4644 |
if (! NILP (insval)) |
if (! NILP (insval)) |
4645 |
{ |
{ |
4646 |
CHECK_NUMBER (insval); |
CHECK_NUMBER (insval); |