summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d2c95aee4c4..11ae63fe4d7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-14 Andreas Schwab <schwab@linux-m68k.org>
+
+ * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13
+ change. (Bug#8496)
+
2011-04-13 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init
diff --git a/src/fileio.c b/src/fileio.c
index 7e2d888b227..8fd89957adb 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3800,7 +3800,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
/* For a special file, all we can do is guess. */
total = READ_BUF_SIZE;
- if (NILP (visit) && inserted > 0)
+ if (NILP (visit) && total > 0)
{
#ifdef CLASH_DETECTION
if (!NILP (BVAR (current_buffer, file_truename))