changeset 22668:ad4d9aae0a33

(Finsert_file_contents): Do not set Vlast_coding_system if inserted bytes is zero.
author Kenichi Handa <handa@m17n.org>
date Fri, 03 Jul 1998 04:33:12 +0000
parents 8e8001567771
children ea5a8ef23b45
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu Jul 02 22:29:15 1998 +0000
+++ b/src/fileio.c	Fri Jul 03 04:33:12 1998 +0000
@@ -4117,7 +4117,7 @@
       && (NILP (visit) || !NILP (replace)))
     signal_after_change (PT, 0, inserted);
 
-  if (set_coding_system)
+  if (set_coding_system && inserted > 0)
     Vlast_coding_system_used = coding.symbol;
 
   if (inserted > 0)