From: Andreas Schwab Date: Thu, 14 Apr 2011 07:56:52 +0000 (+0200) Subject: * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496) X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~290^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b913b570b95f17c9380a9b1f3a487e7c098ecaa;p=emacs.git * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496) --- 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 + + * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 + change. (Bug#8496) + 2011-04-13 Eli Zaretskii * 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))