From: Richard M. Stallman Date: Tue, 28 May 2002 20:25:46 +0000 (+0000) Subject: (Fwrite_region): If START is a string, don't make any annotations. X-Git-Tag: ttn-vms-21-2-B4~14836 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf3428a1e41d32f256bfa89f5da6b8e95f36d956;p=emacs.git (Fwrite_region): If START is a string, don't make any annotations. --- diff --git a/src/fileio.c b/src/fileio.c index 2f658f9bee0..4999e284c84 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4827,11 +4827,16 @@ This does code conversion according to the value of count1 = specpdl_ptr - specpdl; given_buffer = current_buffer; - annotations = build_annotations (start, end); - if (current_buffer != given_buffer) + + if (!STRINGP (start)) { - XSETFASTINT (start, BEGV); - XSETFASTINT (end, ZV); + annotations = build_annotations (start, end); + + if (current_buffer != given_buffer) + { + XSETFASTINT (start, BEGV); + XSETFASTINT (end, ZV); + } } UNGCPRO; @@ -4847,12 +4852,15 @@ This does code conversion according to the value of Vlast_coding_system_used = coding.symbol; given_buffer = current_buffer; - annotations = build_annotations_2 (start, end, - coding.pre_write_conversion, annotations); - if (current_buffer != given_buffer) + if (! STRINGP (start)) { - XSETFASTINT (start, BEGV); - XSETFASTINT (end, ZV); + annotations = build_annotations_2 (start, end, + coding.pre_write_conversion, annotations); + if (current_buffer != given_buffer) + { + XSETFASTINT (start, BEGV); + XSETFASTINT (end, ZV); + } } #ifdef CLASH_DETECTION