550 |
|
|
551 |
#if GLYPH_DEBUG |
#if GLYPH_DEBUG |
552 |
|
|
553 |
|
/* Variables to turn off display optimizations from Lisp. */ |
554 |
|
|
555 |
|
int inhibit_try_window_id, inhibit_try_window_reusing; |
556 |
|
int inhibit_try_cursor_movement; |
557 |
|
|
558 |
/* Non-zero means print traces of redisplay if compiled with |
/* Non-zero means print traces of redisplay if compiled with |
559 |
GLYPH_DEBUG != 0. */ |
GLYPH_DEBUG != 0. */ |
560 |
|
|
9683 |
struct frame *f = XFRAME (w->frame); |
struct frame *f = XFRAME (w->frame); |
9684 |
int rc = CURSOR_MOVEMENT_CANNOT_BE_USED; |
int rc = CURSOR_MOVEMENT_CANNOT_BE_USED; |
9685 |
|
|
9686 |
|
#ifdef GLYPH_DEBUG |
9687 |
|
if (inhibit_try_cursor_movement) |
9688 |
|
return rc; |
9689 |
|
#endif |
9690 |
|
|
9691 |
/* Handle case where text has not changed, only point, and it has |
/* Handle case where text has not changed, only point, and it has |
9692 |
not moved off the frame. */ |
not moved off the frame. */ |
9693 |
if (/* Point may be in this window. */ |
if (/* Point may be in this window. */ |
10624 |
struct glyph_row *start_row; |
struct glyph_row *start_row; |
10625 |
int start_vpos, min_y, max_y; |
int start_vpos, min_y, max_y; |
10626 |
|
|
10627 |
|
#ifdef GLYPH_DEBUG |
10628 |
|
if (inhibit_try_window_reusing) |
10629 |
|
return 0; |
10630 |
|
#endif |
10631 |
|
|
10632 |
if (/* This function doesn't handle terminal frames. */ |
if (/* This function doesn't handle terminal frames. */ |
10633 |
!FRAME_WINDOW_P (f) |
!FRAME_WINDOW_P (f) |
10634 |
/* Don't try to reuse the display if windows have been split |
/* Don't try to reuse the display if windows have been split |
11295 |
struct text_pos start; |
struct text_pos start; |
11296 |
int first_changed_charpos, last_changed_charpos; |
int first_changed_charpos, last_changed_charpos; |
11297 |
|
|
11298 |
|
#ifdef GLYPH_DEBUG |
11299 |
|
if (inhibit_try_window_id) |
11300 |
|
return 0; |
11301 |
|
#endif |
11302 |
|
|
11303 |
/* This is handy for debugging. */ |
/* This is handy for debugging. */ |
11304 |
#if 0 |
#if 0 |
11305 |
#define GIVE_UP(X) \ |
#define GIVE_UP(X) \ |
14896 |
DEFVAR_BOOL ("inhibit-eval-during-redisplay", &inhibit_eval_during_redisplay, |
DEFVAR_BOOL ("inhibit-eval-during-redisplay", &inhibit_eval_during_redisplay, |
14897 |
doc: /* Non-nil means don't eval Lisp during redisplay. */); |
doc: /* Non-nil means don't eval Lisp during redisplay. */); |
14898 |
inhibit_eval_during_redisplay = 0; |
inhibit_eval_during_redisplay = 0; |
14899 |
|
|
14900 |
|
#ifdef GLYPH_DEBUG |
14901 |
|
DEFVAR_BOOL ("inhibit-try-window-id", &inhibit_try_window_id, |
14902 |
|
doc: /* Inhibit try_window_id display optimization. */); |
14903 |
|
inhibit_try_window_id = 0; |
14904 |
|
|
14905 |
|
DEFVAR_BOOL ("inhibit-try-window-reusing", &inhibit_try_window_reusing, |
14906 |
|
doc: /* Inhibit try_window_reusing display optimization. */); |
14907 |
|
inhibit_try_window_reusing = 0; |
14908 |
|
|
14909 |
|
DEFVAR_BOOL ("inhibit-try-cursor-movement", &inhibit_try_cursor_movement, |
14910 |
|
doc: /* Inhibit try_cursor_movement display optimization. */); |
14911 |
|
inhibit_try_cursor_movement = 0; |
14912 |
|
#endif /* GLYPH_DEBUG */ |
14913 |
} |
} |
14914 |
|
|
14915 |
|
|