diff options
| author | Stefan Monnier | 2007-10-02 21:09:17 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-02 21:09:17 +0000 |
| commit | cf00e751e15a327f5cf3d4953ed658aa6ec670a6 (patch) | |
| tree | d1e547ee632b3ebbda2ec483bae11a54fc06b759 | |
| parent | 19b5e79bd5320c098905265b7374cc3774a2b2df (diff) | |
| download | emacs-cf00e751e15a327f5cf3d4953ed658aa6ec670a6.tar.gz emacs-cf00e751e15a327f5cf3d4953ed658aa6ec670a6.zip | |
(Fget_buffer_create, init_buffer_once): Use XSETPVECTYPE.
| -rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index bdb13adcba8..3677ec671f2 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -429,6 +429,7 @@ The value is never nil. */) | |||
| 429 | b->name = name; | 429 | b->name = name; |
| 430 | 430 | ||
| 431 | /* Put this in the alist of all live buffers. */ | 431 | /* Put this in the alist of all live buffers. */ |
| 432 | XSETPVECTYPE (b, PVEC_BUFFER); | ||
| 432 | XSETBUFFER (buf, b); | 433 | XSETBUFFER (buf, b); |
| 433 | Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); | 434 | Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); |
| 434 | 435 | ||
| @@ -5036,7 +5037,9 @@ init_buffer_once () | |||
| 5036 | buffer_local_symbols.text = &buffer_local_symbols.own_text; | 5037 | buffer_local_symbols.text = &buffer_local_symbols.own_text; |
| 5037 | BUF_INTERVALS (&buffer_defaults) = 0; | 5038 | BUF_INTERVALS (&buffer_defaults) = 0; |
| 5038 | BUF_INTERVALS (&buffer_local_symbols) = 0; | 5039 | BUF_INTERVALS (&buffer_local_symbols) = 0; |
| 5040 | XSETPVECTYPE (&buffer_defaults, PVEC_BUFFER); | ||
| 5039 | XSETBUFFER (Vbuffer_defaults, &buffer_defaults); | 5041 | XSETBUFFER (Vbuffer_defaults, &buffer_defaults); |
| 5042 | XSETPVECTYPE (&buffer_local_symbols, PVEC_BUFFER); | ||
| 5040 | XSETBUFFER (Vbuffer_local_symbols, &buffer_local_symbols); | 5043 | XSETBUFFER (Vbuffer_local_symbols, &buffer_local_symbols); |
| 5041 | 5044 | ||
| 5042 | /* Set up the default values of various buffer slots. */ | 5045 | /* Set up the default values of various buffer slots. */ |