From b69a8fdc6cca578ec5947e1965a169359ed07ddc Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 12 Jun 1998 08:35:09 +0000 Subject: [PATCH] (Finsert_file_contents): After calling handler, get INSERTED from the handler's value. --- src/fileio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index 742c7ad95fe..5c81f0a2088 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3334,6 +3334,8 @@ actually used.") { 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; } -- 2.39.5