diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c index bb69675346a..1d58df54f6f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5105,11 +5105,6 @@ void | |||
| 5105 | init_buffer_once (void) | 5105 | init_buffer_once (void) |
| 5106 | { | 5106 | { |
| 5107 | int idx; | 5107 | int idx; |
| 5108 | /* If you add, remove, or reorder Lisp_Objects in a struct buffer, make | ||
| 5109 | sure that this is still correct. Otherwise, mark_vectorlike may not | ||
| 5110 | trace all Lisp_Objects in buffer_defaults and buffer_local_symbols. */ | ||
| 5111 | const int pvecsize | ||
| 5112 | = (offsetof (struct buffer, own_text) - header_size) / word_size; | ||
| 5113 | 5108 | ||
| 5114 | memset (buffer_permanent_local_flags, 0, sizeof buffer_permanent_local_flags); | 5109 | memset (buffer_permanent_local_flags, 0, sizeof buffer_permanent_local_flags); |
| 5115 | 5110 | ||
| @@ -5132,8 +5127,8 @@ init_buffer_once (void) | |||
| 5132 | /* This is not strictly necessary, but let's make them initialized. */ | 5127 | /* This is not strictly necessary, but let's make them initialized. */ |
| 5133 | bset_name (&buffer_defaults, build_pure_c_string (" *buffer-defaults*")); | 5128 | bset_name (&buffer_defaults, build_pure_c_string (" *buffer-defaults*")); |
| 5134 | bset_name (&buffer_local_symbols, build_pure_c_string (" *buffer-local-symbols*")); | 5129 | bset_name (&buffer_local_symbols, build_pure_c_string (" *buffer-local-symbols*")); |
| 5135 | XSETPVECTYPESIZE (&buffer_defaults, PVEC_BUFFER, pvecsize); | 5130 | BUFFER_PVEC_INIT (&buffer_defaults); |
| 5136 | XSETPVECTYPESIZE (&buffer_local_symbols, PVEC_BUFFER, pvecsize); | 5131 | BUFFER_PVEC_INIT (&buffer_local_symbols); |
| 5137 | 5132 | ||
| 5138 | /* Set up the default values of various buffer slots. */ | 5133 | /* Set up the default values of various buffer slots. */ |
| 5139 | /* Must do these before making the first buffer! */ | 5134 | /* Must do these before making the first buffer! */ |