diff options
| author | Ken Raeburn | 2002-07-15 06:57:04 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-15 06:57:04 +0000 |
| commit | 9056febe2cafcdbf2ed06da06bbcb14ba96667bc (patch) | |
| tree | c845720dae745a9e071311b62cc4a4242eba4aa2 | |
| parent | b13738b697be76a8409a2eb650cef1ba0832d255 (diff) | |
| download | emacs-9056febe2cafcdbf2ed06da06bbcb14ba96667bc.tar.gz emacs-9056febe2cafcdbf2ed06da06bbcb14ba96667bc.zip | |
* textprop.c (set_text_properties): Use STRING_SET_INTERVALS.
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/textprop.c | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 44d6e613b20..4fb88d75810 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2002-07-15 Ken Raeburn <raeburn@gnu.org> | ||
| 2 | |||
| 3 | * lisp.h (STRING_INTERVALS): Produce rvalue. | ||
| 4 | (STRING_SET_INTERVALS): New macro. | ||
| 5 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it. | ||
| 6 | * fns.c (Fstring_as_multibyte): Likewise. | ||
| 7 | * intervals.c (create_root_interval, | ||
| 8 | balance_possible_root_interval, delete_interval, | ||
| 9 | copy_intervals_to_string): Likewise. | ||
| 10 | * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL | ||
| 11 | instead of 0. | ||
| 12 | |||
| 1 | 2002-07-14 Ken Raeburn <raeburn@gnu.org> | 13 | 2002-07-14 Ken Raeburn <raeburn@gnu.org> |
| 2 | 14 | ||
| 3 | * lisp.h (STRING_SET_CHARS): New macro. | 15 | * lisp.h (STRING_SET_CHARS): New macro. |
diff --git a/src/textprop.c b/src/textprop.c index bf23f6a34aa..62e9446426e 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -1311,7 +1311,7 @@ set_text_properties (start, end, properties, object, signal_after_change_p) | |||
| 1311 | if (! STRING_INTERVALS (object)) | 1311 | if (! STRING_INTERVALS (object)) |
| 1312 | return Qt; | 1312 | return Qt; |
| 1313 | 1313 | ||
| 1314 | STRING_INTERVALS (object) = 0; | 1314 | STRING_SET_INTERVALS (object, NULL_INTERVAL); |
| 1315 | return Qt; | 1315 | return Qt; |
| 1316 | } | 1316 | } |
| 1317 | 1317 | ||