diff options
| author | Dmitry Antipov | 2012-09-11 08:22:03 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-09-11 08:22:03 +0400 |
| commit | e578f3813ff7f48663eb4821caee267e3ec47aa8 (patch) | |
| tree | b48cd4a8fb778a2a991a342932d357fa8ba4ccc2 /src/buffer.h | |
| parent | 3057e615af94af8d08f475208c7e459f5d7115ac (diff) | |
| download | emacs-e578f3813ff7f48663eb4821caee267e3ec47aa8.tar.gz emacs-e578f3813ff7f48663eb4821caee267e3ec47aa8.zip | |
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/buffer.h')
| -rw-r--r-- | src/buffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h index da40a7ce3d8..d18ef30ea38 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -959,7 +959,10 @@ bset_width_table (struct buffer *b, Lisp_Object val) | |||
| 959 | b->INTERNAL_FIELD (width_table) = val; | 959 | b->INTERNAL_FIELD (width_table) = val; |
| 960 | } | 960 | } |
| 961 | 961 | ||
| 962 | 962 | /* Convenient check whether buffer B is live. */ | |
| 963 | |||
| 964 | #define BUFFER_LIVE_P(b) (!NILP (BVAR (b, name))) | ||
| 965 | |||
| 963 | /* Chain of all buffers, including killed ones. */ | 966 | /* Chain of all buffers, including killed ones. */ |
| 964 | 967 | ||
| 965 | extern struct buffer *all_buffers; | 968 | extern struct buffer *all_buffers; |