]> code.delx.au - gnu-emacs/blobdiff - src/editfns.c
Document sun change.
[gnu-emacs] / src / editfns.c
index 7b3db6203d300aa00e49e567f999a0dbadf94c59..86d292f2976719492d3a4d9d852d6ca654d3abe8 100644 (file)
@@ -1001,7 +1001,7 @@ and don't mark the buffer as really changed.")
   stop = XINT (end);
   look = XINT (fromchar);
 
-  modify_region (pos, stop);
+  modify_region (current_buffer, pos, stop);
   if (! NILP (noundo))
     {
       if (MODIFF - 1 == current_buffer->save_modified)
@@ -1051,7 +1051,7 @@ for the character with code N.  Returns the number of characters changed.")
 
   pos = XINT (start);
   stop = XINT (end);
-  modify_region (pos, stop);
+  modify_region (current_buffer, pos, stop);
 
   cnt = 0;
   for (; pos < stop; ++pos)