diff options
| author | Karl Heuer | 1996-09-05 20:33:58 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-09-05 20:33:58 +0000 |
| commit | 93b62e827874295bba86ee30a58c9d7c5b1ab3bb (patch) | |
| tree | ef16ccc22ff98fefacb4ff21c503828835e1915d /src | |
| parent | 1747fb168a6ac97e64154749b15f65e34cb680b0 (diff) | |
| download | emacs-93b62e827874295bba86ee30a58c9d7c5b1ab3bb.tar.gz emacs-93b62e827874295bba86ee30a58c9d7c5b1ab3bb.zip | |
(Finsert_buffer_substring): Check for deleted buffer.
(Fcompare_buffer_substrings): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 6 |
1 files changed, 6 insertions, 0 deletions
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.") | |||
| 1364 | if (NILP (buffer)) | 1364 | if (NILP (buffer)) |
| 1365 | nsberror (buf); | 1365 | nsberror (buf); |
| 1366 | bp = XBUFFER (buffer); | 1366 | bp = XBUFFER (buffer); |
| 1367 | if (NILP (bp->name)) | ||
| 1368 | error ("Selecting deleted buffer"); | ||
| 1367 | 1369 | ||
| 1368 | if (NILP (start)) | 1370 | if (NILP (start)) |
| 1369 | b = BUF_BEGV (bp); | 1371 | b = BUF_BEGV (bp); |
| @@ -1424,6 +1426,8 @@ determines whether case is significant or ignored.") | |||
| 1424 | if (NILP (buf1)) | 1426 | if (NILP (buf1)) |
| 1425 | nsberror (buffer1); | 1427 | nsberror (buffer1); |
| 1426 | bp1 = XBUFFER (buf1); | 1428 | bp1 = XBUFFER (buf1); |
| 1429 | if (NILP (bp1->name)) | ||
| 1430 | error ("Selecting deleted buffer"); | ||
| 1427 | } | 1431 | } |
| 1428 | 1432 | ||
| 1429 | if (NILP (start1)) | 1433 | if (NILP (start1)) |
| @@ -1460,6 +1464,8 @@ determines whether case is significant or ignored.") | |||
| 1460 | if (NILP (buf2)) | 1464 | if (NILP (buf2)) |
| 1461 | nsberror (buffer2); | 1465 | nsberror (buffer2); |
| 1462 | bp2 = XBUFFER (buf2); | 1466 | bp2 = XBUFFER (buf2); |
| 1467 | if (NILP (bp2->name)) | ||
| 1468 | error ("Selecting deleted buffer"); | ||
| 1463 | } | 1469 | } |
| 1464 | 1470 | ||
| 1465 | if (NILP (start2)) | 1471 | if (NILP (start2)) |