Mercurial > emacs
changeset 85018:3389713480bb
(Fget_buffer_create, init_buffer_once): Use XSETPVECTYPE.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 02 Oct 2007 21:09:17 +0000 |
parents | b0be1b2384d2 |
children | 21a145f18ed2 |
files | src/buffer.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Tue Oct 02 21:07:47 2007 +0000 +++ b/src/buffer.c Tue Oct 02 21:09:17 2007 +0000 @@ -429,6 +429,7 @@ b->name = name; /* Put this in the alist of all live buffers. */ + XSETPVECTYPE (b, PVEC_BUFFER); XSETBUFFER (buf, b); Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); @@ -5036,7 +5037,9 @@ buffer_local_symbols.text = &buffer_local_symbols.own_text; BUF_INTERVALS (&buffer_defaults) = 0; BUF_INTERVALS (&buffer_local_symbols) = 0; + XSETPVECTYPE (&buffer_defaults, PVEC_BUFFER); XSETBUFFER (Vbuffer_defaults, &buffer_defaults); + XSETPVECTYPE (&buffer_local_symbols, PVEC_BUFFER); XSETBUFFER (Vbuffer_local_symbols, &buffer_local_symbols); /* Set up the default values of various buffer slots. */