comparison src/fileio.c @ 4395:76b24be40a57

(Finsert_file_contents): Don't call prepare_to_modify_buffer if inserting zero characters.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 Aug 1993 12:19:11 +0000
parents 3ce8e11f338b
children 73b91cd2c55e
comparison
equal deleted inserted replaced
4394:06a92db6c73b 4395:76b24be40a57
2444 XSET (temp, Lisp_Int, total); 2444 XSET (temp, Lisp_Int, total);
2445 if (total != XINT (temp)) 2445 if (total != XINT (temp))
2446 error ("maximum buffer size exceeded"); 2446 error ("maximum buffer size exceeded");
2447 } 2447 }
2448 2448
2449 if (NILP (visit)) 2449 if (NILP (visit) && total > 0)
2450 prepare_to_modify_buffer (point, point); 2450 prepare_to_modify_buffer (point, point);
2451 2451
2452 move_gap (point); 2452 move_gap (point);
2453 if (GAP_SIZE < total) 2453 if (GAP_SIZE < total)
2454 make_gap (total - GAP_SIZE); 2454 make_gap (total - GAP_SIZE);