# HG changeset patch # User Gerd Moellmann # Date 941465692 0 # Node ID e15d14f9a16e331607d4338d0d14be24594f828a # Parent 0a50b06a5aa7031792c50cf60ba2f2a53a3a5a5b (verify_interval_modification): Signal text-read-only instead of calling error. diff -r 0a50b06a5aa7 -r e15d14f9a16e src/textprop.c --- a/src/textprop.c Mon Nov 01 14:14:31 1999 +0000 +++ b/src/textprop.c Mon Nov 01 14:14:52 1999 +0000 @@ -1693,7 +1693,7 @@ if (TMEM (Qread_only, tem) || (NILP (Fplist_get (i->plist, Qread_only)) && TMEM (Qcategory, tem))) - error ("Attempt to insert within read-only text"); + Fsignal (Qtext_read_only, Qnil); } } @@ -1713,7 +1713,7 @@ if (! TMEM (Qread_only, tem) && (! NILP (Fplist_get (prev->plist,Qread_only)) || ! TMEM (Qcategory, tem))) - error ("Attempt to insert within read-only text"); + Fsignal (Qtext_read_only, Qnil); } } } @@ -1732,13 +1732,13 @@ if (TMEM (Qread_only, tem) || (NILP (Fplist_get (i->plist, Qread_only)) && TMEM (Qcategory, tem))) - error ("Attempt to insert within read-only text"); + Fsignal (Qtext_read_only, Qnil); tem = textget (prev->plist, Qrear_nonsticky); if (! TMEM (Qread_only, tem) && (! NILP (Fplist_get (prev->plist, Qread_only)) || ! TMEM (Qcategory, tem))) - error ("Attempt to insert within read-only text"); + Fsignal (Qtext_read_only, Qnil); } } } @@ -1760,7 +1760,7 @@ do { if (! INTERVAL_WRITABLE_P (i)) - error ("Attempt to modify read-only text"); + Fsignal (Qtext_read_only, Qnil); mod_hooks = textget (i->plist, Qmodification_hooks); if (! NILP (mod_hooks) && ! EQ (mod_hooks, prev_mod_hooks))