Mercurial > emacs
comparison src/buffer.c @ 30911:c1de0fc3a34b
(Fget_buffer_create, Fmake_indirect_buffer): Avoid
INITIALIZE_INTERVAL.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 17 Aug 2000 13:51:37 +0000 |
parents | 48cc3d076524 |
children | 6a0caa788013 |
comparison
equal
deleted
inserted
replaced
30910:3fb31847c03a | 30911:c1de0fc3a34b |
---|---|
383 b->pt_marker = Qnil; | 383 b->pt_marker = Qnil; |
384 b->begv_marker = Qnil; | 384 b->begv_marker = Qnil; |
385 b->zv_marker = Qnil; | 385 b->zv_marker = Qnil; |
386 | 386 |
387 name = Fcopy_sequence (name); | 387 name = Fcopy_sequence (name); |
388 INITIALIZE_INTERVAL (XSTRING (name), NULL_INTERVAL); | 388 XSTRING (name)->intervals = NULL_INTERVAL; |
389 b->name = name; | 389 b->name = name; |
390 | 390 |
391 if (XSTRING (name)->data[0] != ' ') | 391 if (XSTRING (name)->data[0] != ' ') |
392 b->undo_list = Qnil; | 392 b->undo_list = Qnil; |
393 else | 393 else |
499 /* Put this on the chain of all buffers including killed ones. */ | 499 /* Put this on the chain of all buffers including killed ones. */ |
500 b->next = all_buffers; | 500 b->next = all_buffers; |
501 all_buffers = b; | 501 all_buffers = b; |
502 | 502 |
503 name = Fcopy_sequence (name); | 503 name = Fcopy_sequence (name); |
504 INITIALIZE_INTERVAL (XSTRING (name), NULL_INTERVAL); | 504 XSTRING (name)->intervals = NULL_INTERVAL; |
505 b->name = name; | 505 b->name = name; |
506 | 506 |
507 reset_buffer (b); | 507 reset_buffer (b); |
508 reset_buffer_local_variables (b, 1); | 508 reset_buffer_local_variables (b, 1); |
509 | 509 |
3515 Lisp_Object result; | 3515 Lisp_Object result; |
3516 | 3516 |
3517 CHECK_NUMBER_COERCE_MARKER (pos, 0); | 3517 CHECK_NUMBER_COERCE_MARKER (pos, 0); |
3518 | 3518 |
3519 len = 10; | 3519 len = 10; |
3520 /* We can't use alloca here because overlays_at can call xrealloc. */ | |
3520 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); | 3521 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); |
3521 | 3522 |
3522 /* Put all the overlays we want in a vector in overlay_vec. | 3523 /* Put all the overlays we want in a vector in overlay_vec. |
3523 Store the length in len. */ | 3524 Store the length in len. */ |
3524 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, | 3525 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |