diff options
| author | Richard M. Stallman | 1994-09-18 08:46:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-18 08:46:34 +0000 |
| commit | bcd40520863a594cacce49e6a9bc682a86cb2032 (patch) | |
| tree | a82f9a1a920db4ff8229ef90c393412c5e4798eb | |
| parent | 5956f71d45bd320eeacdd01925c1f2a150bc2148 (diff) | |
| download | emacs-bcd40520863a594cacce49e6a9bc682a86cb2032.tar.gz emacs-bcd40520863a594cacce49e6a9bc682a86cb2032.zip | |
(reset_buffer): Don't call reset_buffer_local_variables.
(Fget_buffer_create): Call it here.
(init_buffer_once): And here.
| -rw-r--r-- | src/buffer.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 8ade7e82199..e132f77da93 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -260,6 +260,7 @@ The value is never nil.") | |||
| 260 | b->undo_list = Qt; | 260 | b->undo_list = Qt; |
| 261 | 261 | ||
| 262 | reset_buffer (b); | 262 | reset_buffer (b); |
| 263 | reset_buffer_local_variables (b); | ||
| 263 | 264 | ||
| 264 | /* Put this in the alist of all live buffers. */ | 265 | /* Put this in the alist of all live buffers. */ |
| 265 | XSET (buf, Lisp_Buffer, b); | 266 | XSET (buf, Lisp_Buffer, b); |
| @@ -291,7 +292,8 @@ The value is never nil.") | |||
| 291 | return unbind_to (count, buf); | 292 | return unbind_to (count, buf); |
| 292 | } | 293 | } |
| 293 | 294 | ||
| 294 | /* Reinitialize everything about a buffer except its name and contents. */ | 295 | /* Reinitialize everything about a buffer except its name and contents |
| 296 | and local variables. */ | ||
| 295 | 297 | ||
| 296 | void | 298 | void |
| 297 | reset_buffer (b) | 299 | reset_buffer (b) |
| @@ -315,10 +317,13 @@ reset_buffer (b) | |||
| 315 | 317 | ||
| 316 | /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ | 318 | /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */ |
| 317 | INITIALIZE_INTERVAL (b, NULL_INTERVAL); | 319 | INITIALIZE_INTERVAL (b, NULL_INTERVAL); |
| 318 | |||
| 319 | reset_buffer_local_variables(b); | ||
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | /* Reset buffer B's local variables info. | ||
| 323 | Don't use this on a buffer that has already been in use; | ||
| 324 | it does not treat permanent locals consistently. | ||
| 325 | Instead, use Fkill_all_local_variables. */ | ||
| 326 | |||
| 322 | reset_buffer_local_variables (b) | 327 | reset_buffer_local_variables (b) |
| 323 | register struct buffer *b; | 328 | register struct buffer *b; |
| 324 | { | 329 | { |
| @@ -2374,7 +2379,9 @@ init_buffer_once () | |||
| 2374 | /* Make sure all markable slots in buffer_defaults | 2379 | /* Make sure all markable slots in buffer_defaults |
| 2375 | are initialized reasonably, so mark_buffer won't choke. */ | 2380 | are initialized reasonably, so mark_buffer won't choke. */ |
| 2376 | reset_buffer (&buffer_defaults); | 2381 | reset_buffer (&buffer_defaults); |
| 2382 | reset_buffer_local_variables (&buffer_defaults); | ||
| 2377 | reset_buffer (&buffer_local_symbols); | 2383 | reset_buffer (&buffer_local_symbols); |
| 2384 | reset_buffer_local_variables (&buffer_local_symbols); | ||
| 2378 | XSET (Vbuffer_defaults, Lisp_Buffer, &buffer_defaults); | 2385 | XSET (Vbuffer_defaults, Lisp_Buffer, &buffer_defaults); |
| 2379 | XSET (Vbuffer_local_symbols, Lisp_Buffer, &buffer_local_symbols); | 2386 | XSET (Vbuffer_local_symbols, Lisp_Buffer, &buffer_local_symbols); |
| 2380 | 2387 | ||