changeset 16134:7558d82368f9

(Finsert_buffer_substring): Check for deleted buffer. (Fcompare_buffer_substrings): Likewise.
author Karl Heuer <kwzh@gnu.org>
date Thu, 05 Sep 1996 20:33:58 +0000
parents 36566aa94b49
children 102e7d27c135
files src/editfns.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Wed Sep 04 18:54:36 1996 +0000
+++ b/src/editfns.c	Thu Sep 05 20:33:58 1996 +0000
@@ -1364,6 +1364,8 @@
   if (NILP (buffer))
     nsberror (buf);
   bp = XBUFFER (buffer);
+  if (NILP (bp->name))
+    error ("Selecting deleted buffer");
 
   if (NILP (start))
     b = BUF_BEGV (bp);
@@ -1424,6 +1426,8 @@
       if (NILP (buf1))
 	nsberror (buffer1);
       bp1 = XBUFFER (buf1);
+      if (NILP (bp1->name))
+	error ("Selecting deleted buffer");
     }
 
   if (NILP (start1))
@@ -1460,6 +1464,8 @@
       if (NILP (buf2))
 	nsberror (buffer2);
       bp2 = XBUFFER (buf2);
+      if (NILP (bp2->name))
+	error ("Selecting deleted buffer");
     }
 
   if (NILP (start2))