HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convenient macro to check whether the buffer is live.
[bpt/emacs.git]
/
src
/
buffer.h
diff --git
a/src/buffer.h
b/src/buffer.h
index
da40a7c
..
d18ef30
100644
(file)
--- a/
src/buffer.h
+++ b/
src/buffer.h
@@
-959,7
+959,10
@@
bset_width_table (struct buffer *b, Lisp_Object val)
b->INTERNAL_FIELD (width_table) = val;
}
-
\f
+/* Convenient check whether buffer B is live. */
+
+#define BUFFER_LIVE_P(b) (!NILP (BVAR (b, name)))
+
/* Chain of all buffers, including killed ones. */
extern struct buffer *all_buffers;