aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-24 08:17:14 +0000
committerGerd Moellmann2001-10-24 08:17:14 +0000
commit76cb5e0695429155f95f43d63846005c32ccb58f (patch)
tree3d2c9bda58af5224374fcec35e0e224a6fd5b04f
parentc9e6062043bfd116f0f52b4a3472a673ec4ccd7d (diff)
downloademacs-76cb5e0695429155f95f43d63846005c32ccb58f.tar.gz
emacs-76cb5e0695429155f95f43d63846005c32ccb58f.zip
(inhibit_try_window_id, inhibit_try_window_reusing)
(inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables. (try_window_id, try_window_reusing_current_matrix) (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited. (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
-rw-r--r--src/ChangeLog8
-rw-r--r--src/xdisp.c34
2 files changed, 42 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 19f7250c208..223cdea9c2f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12001-10-24 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
4 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
5 (try_window_id, try_window_reusing_current_matrix)
6 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
7 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
8
12001-10-24 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 92001-10-24 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 10
3 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of 11 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
diff --git a/src/xdisp.c b/src/xdisp.c
index f39f9ec387d..14413ca8f45 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -550,6 +550,11 @@ int current_mode_line_height, current_header_line_height;
550 550
551#if GLYPH_DEBUG 551#if GLYPH_DEBUG
552 552
553/* Variables to turn off display optimizations from Lisp. */
554
555int inhibit_try_window_id, inhibit_try_window_reusing;
556int inhibit_try_cursor_movement;
557
553/* Non-zero means print traces of redisplay if compiled with 558/* Non-zero means print traces of redisplay if compiled with
554 GLYPH_DEBUG != 0. */ 559 GLYPH_DEBUG != 0. */
555 560
@@ -9678,6 +9683,11 @@ try_cursor_movement (window, startp, scroll_step)
9678 struct frame *f = XFRAME (w->frame); 9683 struct frame *f = XFRAME (w->frame);
9679 int rc = CURSOR_MOVEMENT_CANNOT_BE_USED; 9684 int rc = CURSOR_MOVEMENT_CANNOT_BE_USED;
9680 9685
9686#ifdef GLYPH_DEBUG
9687 if (inhibit_try_cursor_movement)
9688 return rc;
9689#endif
9690
9681 /* Handle case where text has not changed, only point, and it has 9691 /* Handle case where text has not changed, only point, and it has
9682 not moved off the frame. */ 9692 not moved off the frame. */
9683 if (/* Point may be in this window. */ 9693 if (/* Point may be in this window. */
@@ -10614,6 +10624,11 @@ try_window_reusing_current_matrix (w)
10614 struct glyph_row *start_row; 10624 struct glyph_row *start_row;
10615 int start_vpos, min_y, max_y; 10625 int start_vpos, min_y, max_y;
10616 10626
10627#ifdef GLYPH_DEBUG
10628 if (inhibit_try_window_reusing)
10629 return 0;
10630#endif
10631
10617 if (/* This function doesn't handle terminal frames. */ 10632 if (/* This function doesn't handle terminal frames. */
10618 !FRAME_WINDOW_P (f) 10633 !FRAME_WINDOW_P (f)
10619 /* Don't try to reuse the display if windows have been split 10634 /* Don't try to reuse the display if windows have been split
@@ -11280,6 +11295,11 @@ try_window_id (w)
11280 struct text_pos start; 11295 struct text_pos start;
11281 int first_changed_charpos, last_changed_charpos; 11296 int first_changed_charpos, last_changed_charpos;
11282 11297
11298#ifdef GLYPH_DEBUG
11299 if (inhibit_try_window_id)
11300 return 0;
11301#endif
11302
11283 /* This is handy for debugging. */ 11303 /* This is handy for debugging. */
11284#if 0 11304#if 0
11285#define GIVE_UP(X) \ 11305#define GIVE_UP(X) \
@@ -14876,6 +14896,20 @@ Can be used to update submenus whose contents should vary. */);
14876 DEFVAR_BOOL ("inhibit-eval-during-redisplay", &inhibit_eval_during_redisplay, 14896 DEFVAR_BOOL ("inhibit-eval-during-redisplay", &inhibit_eval_during_redisplay,
14877 doc: /* Non-nil means don't eval Lisp during redisplay. */); 14897 doc: /* Non-nil means don't eval Lisp during redisplay. */);
14878 inhibit_eval_during_redisplay = 0; 14898 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 */
14879} 14913}
14880 14914
14881 14915