Mercurial > emacs
comparison src/fileio.c @ 70578:e963ced8a1ca
(Finsert_file_contents): Fix for the case of IO error
while handling replace operation.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 11 May 2006 04:13:05 +0000 |
parents | b191186433c8 |
children | d876c40c06dd b6689e223e2f a5812696f7bf |
comparison
equal
deleted
inserted
replaced
70577:bee281cd9295 | 70578:e963ced8a1ca |
---|---|
4323 | 4323 |
4324 if (how_much < 0) | 4324 if (how_much < 0) |
4325 { | 4325 { |
4326 xfree (conversion_buffer); | 4326 xfree (conversion_buffer); |
4327 coding_free_composition_data (&coding); | 4327 coding_free_composition_data (&coding); |
4328 if (how_much == -1) | 4328 error ("IO error reading %s: %s", |
4329 error ("IO error reading %s: %s", | 4329 SDATA (orig_filename), emacs_strerror (errno)); |
4330 SDATA (orig_filename), emacs_strerror (errno)); | |
4331 else if (how_much == -2) | |
4332 error ("maximum buffer size exceeded"); | |
4333 } | 4330 } |
4334 | 4331 |
4335 /* Compare the beginning of the converted file | 4332 /* Compare the beginning of the converted file |
4336 with the buffer text. */ | 4333 with the buffer text. */ |
4337 | 4334 |