diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-09-11 08:22:03 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-09-11 08:22:03 +0400 |
commit | e578f3813ff7f48663eb4821caee267e3ec47aa8 (patch) | |
tree | b48cd4a8fb778a2a991a342932d357fa8ba4ccc2 /src/lread.c | |
parent | 3057e615af94af8d08f475208c7e459f5d7115ac (diff) | |
download | emacs-e578f3813ff7f48663eb4821caee267e3ec47aa8.tar.gz |
Convenient macro to check whether the buffer is live.
* buffer.h (BUFFER_LIVE_P): New macro.
* alloc.c, buffer.c, editfns.c, insdel.c, lread.c, marker.c:
* minibuf.c, print.c, process.c, window.c, xdisp.c: Use it.
Diffstat (limited to 'src/lread.c')
-rw-r--r-- | src/lread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index 02b13affb6a..08a2e856c00 100644 --- a/src/lread.c +++ b/src/lread.c @@ -1734,7 +1734,7 @@ readevalloop (Lisp_Object readcharfun, { ptrdiff_t count1 = SPECPDL_INDEX (); - if (b != 0 && NILP (BVAR (b, name))) + if (b != 0 && !BUFFER_LIVE_P (b)) error ("Reading from killed buffer"); if (!NILP (start)) |