mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 15:52:00 -08:00
(insert_1_both): Call set_text_properties with last
parameter nil so that no after changes will be signaled.
This commit is contained in:
parent
48778e46da
commit
f2cab2ea4a
1 changed files with 5 additions and 4 deletions
|
|
@ -568,8 +568,9 @@ adjust_markers_for_replace (from, from_byte, old_chars, old_bytes,
|
|||
}
|
||||
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 @@ insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue