(Finsert_file_contents): Fix for the case of IO error
authorKenichi Handa <handa@m17n.org>
Thu, 11 May 2006 04:13:33 +0000 (04:13 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 11 May 2006 04:13:33 +0000 (04:13 +0000)
while handling replace operation.

src/ChangeLog
src/fileio.c

index afaa1c3..8f27f48 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-11  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (Finsert_file_contents): Fix for the case of IO error
+       while handling replace operation.
+
 2006-05-10  Kenichi Handa  <handa@m17n.org>
 
        * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
index 422f9d8..12ce3c4 100644 (file)
@@ -4325,11 +4325,8 @@ actually used.  */)
        {
          xfree (conversion_buffer);
          coding_free_composition_data (&coding);
-         if (how_much == -1)
-           error ("IO error reading %s: %s",
-                  SDATA (orig_filename), emacs_strerror (errno));
-         else if (how_much == -2)
-           error ("maximum buffer size exceeded");
+         error ("IO error reading %s: %s",
+                SDATA (orig_filename), emacs_strerror (errno));
        }
 
       /* Compare the beginning of the converted file