summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-09-11 08:22:03 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-09-11 08:22:03 +0400
commite578f3813ff7f48663eb4821caee267e3ec47aa8 (patch)
treeb48cd4a8fb778a2a991a342932d357fa8ba4ccc2 /src/print.c
parent3057e615af94af8d08f475208c7e459f5d7115ac (diff)
downloademacs-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/print.c')
-rw-r--r--src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index ab86ee1a8b5..16116643ad0 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1873,7 +1873,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
}
else if (BUFFERP (obj))
{
- if (NILP (BVAR (XBUFFER (obj), name)))
+ if (!BUFFER_LIVE_P (XBUFFER (obj)))
strout ("#<killed buffer>", -1, -1, printcharfun);
else if (escapeflag)
{