7697 |
/* Resize mini-window W to fit the size of its contents. EXACT:P |
/* Resize mini-window W to fit the size of its contents. EXACT:P |
7698 |
means size the window exactly to the size needed. Otherwise, it's |
means size the window exactly to the size needed. Otherwise, it's |
7699 |
only enlarged until W's buffer is empty. |
only enlarged until W's buffer is empty. |
7700 |
|
|
7701 |
Set W->start to the right place to begin display. If the whole |
Set W->start to the right place to begin display. If the whole |
7702 |
contents fit, start at the beginning. Otherwise, start so as |
contents fit, start at the beginning. Otherwise, start so as |
7703 |
to make the end of the contents appear. This is particularly |
to make the end of the contents appear. This is particularly |
7786 |
init_iterator (&it, w, ZV, ZV_BYTE, NULL, DEFAULT_FACE_ID); |
init_iterator (&it, w, ZV, ZV_BYTE, NULL, DEFAULT_FACE_ID); |
7787 |
move_it_vertically_backward (&it, (height - 1) * unit); |
move_it_vertically_backward (&it, (height - 1) * unit); |
7788 |
start = it.current.pos; |
start = it.current.pos; |
|
SET_PT_BOTH (CHARPOS (start), BYTEPOS (start)); |
|
7789 |
} |
} |
7790 |
else |
else |
7791 |
SET_TEXT_POS (start, BEGV, BEGV_BYTE); |
SET_TEXT_POS (start, BEGV, BEGV_BYTE); |