]> git.eshelyaron.com Git - emacs.git/commitdiff
(graft_intervals_into_buffer): When TREE is null,
authorRichard M. Stallman <rms@gnu.org>
Thu, 22 Jul 1993 08:06:55 +0000 (08:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 22 Jul 1993 08:06:55 +0000 (08:06 +0000)
pass buffer as 2nd arg to reproduce_tree.

src/intervals.c

index 0922a074a96dc57c1ba1ea1e4663ed03da4e4299..402b96c4e3725125adaa86d10eaf49aa6c45933e 100644 (file)
@@ -1114,7 +1114,9 @@ graft_intervals_into_buffer (source, position, buffer)
         simply copy over the interval structure. */
       if ((BUF_Z (buffer) - BUF_BEG (buffer)) == TOTAL_LENGTH (source))
        {
-         buffer->intervals = reproduce_tree (source, tree->parent);
+         Lisp_Object buf;
+         XSET (buf, Lisp_Buffer, buffer);
+         buffer->intervals = reproduce_tree (source, buf);
          /* Explicitly free the old tree here. */
 
          return;