]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fwrite_region): If START is a string, don't make any annotations.
authorRichard M. Stallman <rms@gnu.org>
Tue, 28 May 2002 20:25:46 +0000 (20:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 28 May 2002 20:25:46 +0000 (20:25 +0000)
src/fileio.c

index 2f658f9bee0f005f4d8840ed477cead6df1b67fd..4999e284c84ee63735d9659829e98cb7181183e1 100644 (file)
@@ -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