From 93b62e827874295bba86ee30a58c9d7c5b1ab3bb Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 5 Sep 1996 20:33:58 +0000 Subject: [PATCH] (Finsert_buffer_substring): Check for deleted buffer. (Fcompare_buffer_substrings): Likewise. --- src/editfns.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/editfns.c b/src/editfns.c index 42db5e02cb3..92daf882d86 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1364,6 +1364,8 @@ They default to the beginning and the end of BUFFER.") 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 @@ determines whether case is significant or ignored.") if (NILP (buf1)) nsberror (buffer1); bp1 = XBUFFER (buf1); + if (NILP (bp1->name)) + error ("Selecting deleted buffer"); } if (NILP (start1)) @@ -1460,6 +1464,8 @@ determines whether case is significant or ignored.") if (NILP (buf2)) nsberror (buffer2); bp2 = XBUFFER (buf2); + if (NILP (bp2->name)) + error ("Selecting deleted buffer"); } if (NILP (start2)) -- 2.39.2