Revert commits 1ff69cc744
and 9a894206f6
.
This commit is contained in:
parent
9a894206f6
commit
c6bee17075
3 changed files with 1 additions and 16 deletions
|
@ -599,7 +599,6 @@ even if it is dead. The return value is never nil. */)
|
|||
BUF_OVERLAY_UNCHANGED_MODIFIED (b) = 1;
|
||||
BUF_END_UNCHANGED (b) = 0;
|
||||
BUF_BEG_UNCHANGED (b) = 0;
|
||||
BUF_UNCHANGED_SIZE (b) = 0;
|
||||
*(BUF_GPT_ADDR (b)) = *(BUF_Z_ADDR (b)) = 0; /* Put an anchor '\0'. */
|
||||
b->text->inhibit_shrinking = false;
|
||||
b->text->redisplay = false;
|
||||
|
@ -2477,11 +2476,6 @@ results, see Info node `(elisp)Swapping Text'. */)
|
|||
current_buffer->text->end_unchanged = current_buffer->text->gpt;
|
||||
other_buffer->text->beg_unchanged = other_buffer->text->gpt;
|
||||
other_buffer->text->end_unchanged = other_buffer->text->gpt;
|
||||
{
|
||||
ptrdiff_t tmp = current_buffer->text->unchanged_size;
|
||||
current_buffer->text->unchanged_size = other_buffer->text->unchanged_size;
|
||||
other_buffer->text->unchanged_size = tmp;
|
||||
}
|
||||
{
|
||||
struct Lisp_Marker *m;
|
||||
for (m = BUF_MARKERS (current_buffer); m; m = m->next)
|
||||
|
|
|
@ -144,9 +144,6 @@ enum { BEG = 1, BEG_BYTE = BEG };
|
|||
#define BUF_UNCHANGED_MODIFIED(buf) \
|
||||
((buf)->text->unchanged_modified)
|
||||
|
||||
#define BUF_UNCHANGED_SIZE(buf) \
|
||||
((buf)->text->unchanged_size)
|
||||
|
||||
#define BUF_OVERLAY_UNCHANGED_MODIFIED(buf) \
|
||||
((buf)->text->overlay_unchanged_modified)
|
||||
#define BUF_BEG_UNCHANGED(buf) ((buf)->text->beg_unchanged)
|
||||
|
@ -270,9 +267,6 @@ struct buffer_text
|
|||
end_unchanged contain no useful information. */
|
||||
modiff_count overlay_unchanged_modified;
|
||||
|
||||
/* Buffer size as of last redisplay that finished. */
|
||||
ptrdiff_t unchanged_size;
|
||||
|
||||
/* Properties of this buffer's text. */
|
||||
INTERVAL intervals;
|
||||
|
||||
|
|
|
@ -17074,7 +17074,6 @@ mark_window_display_accurate_1 (struct window *w, bool accurate_p)
|
|||
BUF_OVERLAY_UNCHANGED_MODIFIED (b) = BUF_OVERLAY_MODIFF (b);
|
||||
BUF_BEG_UNCHANGED (b) = BUF_GPT (b) - BUF_BEG (b);
|
||||
BUF_END_UNCHANGED (b) = BUF_Z (b) - BUF_GPT (b);
|
||||
BUF_UNCHANGED_SIZE (b) = BUF_Z (b) - BUF_BEG (b);
|
||||
|
||||
w->current_matrix->buffer = b;
|
||||
w->current_matrix->begv = BUF_BEGV (b);
|
||||
|
@ -19294,9 +19293,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
|
|||
/* Check whether the buffer to be displayed contains long lines. */
|
||||
if (!NILP (Vlong_line_threshold)
|
||||
&& !current_buffer->long_line_optimizations_p
|
||||
&& (MODIFF - UNCHANGED_MODIFIED > 4
|
||||
|| Z - BEG - BUF_UNCHANGED_SIZE (current_buffer) > 1
|
||||
|| Z - BEG - BUF_UNCHANGED_SIZE (current_buffer) < -1))
|
||||
&& MODIFF != UNCHANGED_MODIFIED)
|
||||
{
|
||||
ptrdiff_t cur, next, found, max = 0;
|
||||
for (cur = 1; cur < Z; cur = next)
|
||||
|
|
Loading…
Add table
Reference in a new issue