Mercurial > emacs
comparison src/buffer.c @ 25653:ff17759d9d9f
(Fget_buffer_create): Use prompt_end_charpos instead
of minibuffer_prompt_length.
(Fmake_indirect_buffer): Ditto.
(Fkill_buffer): Ditto.
(Ferase_buffer): Ditto.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Sun, 12 Sep 1999 20:21:48 +0000 |
| parents | acfb741e6e24 |
| children | 832aeb9c3996 |
comparison
equal
deleted
inserted
replaced
| 25652:28e2ad53250c | 25653:ff17759d9d9f |
|---|---|
| 371 *(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */ | 371 *(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */ |
| 372 | 372 |
| 373 b->newline_cache = 0; | 373 b->newline_cache = 0; |
| 374 b->width_run_cache = 0; | 374 b->width_run_cache = 0; |
| 375 b->width_table = Qnil; | 375 b->width_table = Qnil; |
| 376 b->minibuffer_prompt_length = Qnil; | 376 b->prompt_end_charpos = Qnil; |
| 377 b->prevent_redisplay_optimizations_p = 1; | 377 b->prevent_redisplay_optimizations_p = 1; |
| 378 | 378 |
| 379 /* Put this on the chain of all buffers including killed ones. */ | 379 /* Put this on the chain of all buffers including killed ones. */ |
| 380 b->next = all_buffers; | 380 b->next = all_buffers; |
| 381 all_buffers = b; | 381 all_buffers = b; |
| 451 BUF_PT_BYTE (b) = BUF_PT_BYTE (b->base_buffer); | 451 BUF_PT_BYTE (b) = BUF_PT_BYTE (b->base_buffer); |
| 452 | 452 |
| 453 b->newline_cache = 0; | 453 b->newline_cache = 0; |
| 454 b->width_run_cache = 0; | 454 b->width_run_cache = 0; |
| 455 b->width_table = Qnil; | 455 b->width_table = Qnil; |
| 456 b->minibuffer_prompt_length = Qnil; | 456 b->prompt_end_charpos = Qnil; |
| 457 | 457 |
| 458 /* Put this on the chain of all buffers including killed ones. */ | 458 /* Put this on the chain of all buffers including killed ones. */ |
| 459 b->next = all_buffers; | 459 b->next = all_buffers; |
| 460 all_buffers = b; | 460 all_buffers = b; |
| 461 | 461 |
| 1221 { | 1221 { |
| 1222 free_region_cache (b->width_run_cache); | 1222 free_region_cache (b->width_run_cache); |
| 1223 b->width_run_cache = 0; | 1223 b->width_run_cache = 0; |
| 1224 } | 1224 } |
| 1225 b->width_table = Qnil; | 1225 b->width_table = Qnil; |
| 1226 b->minibuffer_prompt_length = Qnil; | 1226 b->prompt_end_charpos = Qnil; |
| 1227 UNBLOCK_INPUT; | 1227 UNBLOCK_INPUT; |
| 1228 b->undo_list = Qnil; | 1228 b->undo_list = Qnil; |
| 1229 | 1229 |
| 1230 return Qt; | 1230 return Qt; |
| 1231 } | 1231 } |
| 1704 so the buffer is truly empty after this.") | 1704 so the buffer is truly empty after this.") |
| 1705 () | 1705 () |
| 1706 { | 1706 { |
| 1707 Fwiden (); | 1707 Fwiden (); |
| 1708 | 1708 |
| 1709 if (INTEGERP (current_buffer->minibuffer_prompt_length)) | 1709 if (INTEGERP (current_buffer->prompt_end_charpos)) |
| 1710 del_range (XINT (current_buffer->minibuffer_prompt_length), Z); | 1710 del_range (XINT (current_buffer->prompt_end_charpos), Z); |
| 1711 else | 1711 else |
| 1712 del_range (BEG, Z); | 1712 del_range (BEG, Z); |
| 1713 | 1713 |
| 1714 current_buffer->last_window_start = 1; | 1714 current_buffer->last_window_start = 1; |
| 1715 /* Prevent warnings, or suspension of auto saving, that would happen | 1715 /* Prevent warnings, or suspension of auto saving, that would happen |
