From 4ae73bb6cb07bcb25656b25de9be3e77bcbb11d6 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 21 Jun 2004 00:26:32 +0000 Subject: [PATCH] (mtext__adjust_plist_for_change): New function. --- src/textprop.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/textprop.c b/src/textprop.c index f417e39..40705e5 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -1429,6 +1429,20 @@ mtext__adjust_plist_for_insert (MText *mt, int pos, int nchars, } } +void +mtext__adjust_plist_for_change (MText *mt, int from, int to) +{ + MTextPlist *plist; + + prepare_to_modify (mt, from, to, Mnil); + for (plist = mt->plist; plist; plist = plist->next) + { + pop_all_properties (plist, from, to); + xassert (check_plist (plist, 0) == 0); + } +} + + /*** @} */ #endif /* !FOR_DOXYGEN || DOXYGEN_INTERNAL_MODULE */ -- 1.7.10.4