Mercurial > emacs
changeset 26604:381c4e70f9fb
(insert_1_both): Call set_text_properties with last
parameter nil so that no after changes will be signaled.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 26 Nov 1999 12:07:04 +0000 |
parents | 30dbdfd88028 |
children | 46168cb41ba0 |
files | src/insdel.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/insdel.c Fri Nov 26 12:06:29 1999 +0000 +++ b/src/insdel.c Fri Nov 26 12:07:04 1999 +0000 @@ -568,8 +568,9 @@ } else { - m->charpos += diff_chars; - m->bytepos += diff_bytes; + m->charpos = min (from + new_chars, m->charpos + diff_chars); + m->bytepos = min (from_byte + new_bytes, + m->bytepos + diff_bytes); } } else if (m->bytepos >= from_byte) @@ -1188,8 +1189,8 @@ offset_intervals (current_buffer, PT, nchars); if (!inherit && BUF_INTERVALS (current_buffer) != 0) - Fset_text_properties (make_number (PT), make_number (PT + nchars), - Qnil, Qnil); + set_text_properties (make_number (PT), make_number (PT + nchars), + Qnil, Qnil, Qnil); { int pos = PT, pos_byte = PT_BYTE;