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/alloc.c | |
| 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/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 33dc68df48e..7bbc0abcd9a 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3682,7 +3682,7 @@ build_marker (struct buffer *buf, ptrdiff_t charpos, ptrdiff_t bytepos) | |||
| 3682 | struct Lisp_Marker *m; | 3682 | struct Lisp_Marker *m; |
| 3683 | 3683 | ||
| 3684 | /* No dead buffers here. */ | 3684 | /* No dead buffers here. */ |
| 3685 | eassert (!NILP (BVAR (buf, name))); | 3685 | eassert (BUFFER_LIVE_P (buf)); |
| 3686 | 3686 | ||
| 3687 | /* Every character is at least one byte. */ | 3687 | /* Every character is at least one byte. */ |
| 3688 | eassert (charpos <= bytepos); | 3688 | eassert (charpos <= bytepos); |