Mercurial > emacs
comparison src/intervals.c @ 4223:b044f6d3c4cb
(graft_intervals_into_buffer): When TREE is null,
pass buffer as 2nd arg to reproduce_tree.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 22 Jul 1993 08:06:55 +0000 |
parents | 84ea8ebc9858 |
children | 23fe7f6c9ae4 |
comparison
equal
deleted
inserted
replaced
4222:6a8d48a6ac10 | 4223:b044f6d3c4cb |
---|---|
1112 { | 1112 { |
1113 /* The inserted text constitutes the whole buffer, so | 1113 /* The inserted text constitutes the whole buffer, so |
1114 simply copy over the interval structure. */ | 1114 simply copy over the interval structure. */ |
1115 if ((BUF_Z (buffer) - BUF_BEG (buffer)) == TOTAL_LENGTH (source)) | 1115 if ((BUF_Z (buffer) - BUF_BEG (buffer)) == TOTAL_LENGTH (source)) |
1116 { | 1116 { |
1117 buffer->intervals = reproduce_tree (source, tree->parent); | 1117 Lisp_Object buf; |
1118 XSET (buf, Lisp_Buffer, buffer); | |
1119 buffer->intervals = reproduce_tree (source, buf); | |
1118 /* Explicitly free the old tree here. */ | 1120 /* Explicitly free the old tree here. */ |
1119 | 1121 |
1120 return; | 1122 return; |
1121 } | 1123 } |
1122 | 1124 |