Mercurial > emacs
comparison src/insdel.c @ 23340:6df1b016f5fc
(adjust_after_replace): Don't delete text properties here.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 28 Sep 1998 11:52:53 +0000 |
parents | a3f818e927ba |
children | 8a51c720f8d7 |
comparison
equal
deleted
inserted
replaced
23339:2da87b489590 | 23340:6df1b016f5fc |
---|---|
1654 adjust_overlays_for_delete (from, nchars_del - len); | 1654 adjust_overlays_for_delete (from, nchars_del - len); |
1655 #ifdef USE_TEXT_PROPERTIES | 1655 #ifdef USE_TEXT_PROPERTIES |
1656 if (BUF_INTERVALS (current_buffer) != 0) | 1656 if (BUF_INTERVALS (current_buffer) != 0) |
1657 { | 1657 { |
1658 offset_intervals (current_buffer, from, len - nchars_del); | 1658 offset_intervals (current_buffer, from, len - nchars_del); |
1659 if (len - nchars_del > 0) | |
1660 Fset_text_properties (make_number (from), | |
1661 make_number (from + len - nchars_del), | |
1662 Qnil, Qnil); | |
1663 } | 1659 } |
1664 #endif | 1660 #endif |
1665 | 1661 |
1666 { | 1662 { |
1667 int pos = PT, pos_byte = PT_BYTE; | 1663 int pos = PT, pos_byte = PT_BYTE; |