changeset 26276:e15d14f9a16e

(verify_interval_modification): Signal text-read-only instead of calling error.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 01 Nov 1999 14:14:52 +0000
parents 0a50b06a5aa7
children 32e16b70ae15
files src/textprop.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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))