changeset 22450:455438d7b6c7

(Finsert_file_contents): After calling handler, get INSERTED from the handler's value.
author Kenichi Handa <handa@m17n.org>
date Fri, 12 Jun 1998 08:35:09 +0000
parents c87830c691a5
children 2da4749dc8cc
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Fri Jun 12 07:10:59 1998 +0000
+++ b/src/fileio.c	Fri Jun 12 08:35:09 1998 +0000
@@ -3334,6 +3334,8 @@
     {
       val = call6 (handler, Qinsert_file_contents, filename,
 		   visit, beg, end, replace);
+      if (CONSP (val) && CONSP (XCONS (val)->cdr))
+	inserted = XINT (XCONS (XCONS (val)->cdr)->cdr);
       goto handled;
     }