diff options
| author | Richard M. Stallman | 1993-07-22 08:06:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-22 08:06:55 +0000 |
| commit | b8e4857c8119527360091b3f8274a7b24c08d686 (patch) | |
| tree | ebf88632dfacc2d6aa26059ede6df34025fbc9af /src | |
| parent | fba985162a1c261eaaf05cc0e199d12af397be97 (diff) | |
| download | emacs-b8e4857c8119527360091b3f8274a7b24c08d686.tar.gz emacs-b8e4857c8119527360091b3f8274a7b24c08d686.zip | |
(graft_intervals_into_buffer): When TREE is null,
pass buffer as 2nd arg to reproduce_tree.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c index 0922a074a96..402b96c4e37 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1114,7 +1114,9 @@ graft_intervals_into_buffer (source, position, buffer) | |||
| 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; |