aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-01-31 20:12:37 +0000
committerGerd Moellmann2000-01-31 20:12:37 +0000
commitbf9249e38f94dfbbc0a63f9f0b4a0789b2e6e023 (patch)
tree6932b9aa3989c7f0b1504c8725bd9fcd53c20075 /src
parent8d9ea7b12a87167bbe07b1ca0efc76f19f242f3a (diff)
downloademacs-bf9249e38f94dfbbc0a63f9f0b4a0789b2e6e023.tar.gz
emacs-bf9249e38f94dfbbc0a63f9f0b4a0789b2e6e023.zip
(Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
(syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 13ad007daab..e6c304501ed 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10026,13 +10026,17 @@ try_window_id (w)
10026 only if buffer has really changed. The reason is that the gap is 10026 only if buffer has really changed. The reason is that the gap is
10027 initially at Z for freshly visited files. The code below would 10027 initially at Z for freshly visited files. The code below would
10028 set end_unchanged to 0 in that case. */ 10028 set end_unchanged to 0 in that case. */
10029 if (MODIFF > 1) 10029 if (MODIFF > SAVE_MODIFF)
10030 { 10030 {
10031 if (GPT - BEG < BEG_UNCHANGED) 10031 if (GPT - BEG < BEG_UNCHANGED)
10032 BEG_UNCHANGED = GPT - BEG; 10032 BEG_UNCHANGED = GPT - BEG;
10033 if (Z - GPT < END_UNCHANGED) 10033 if (Z - GPT < END_UNCHANGED)
10034 END_UNCHANGED = Z - GPT; 10034 END_UNCHANGED = Z - GPT;
10035 } 10035 }
10036
10037 /* Some strange bug seems to be causing that to happen sometimes. */
10038 if (BEG_UNCHANGED + END_UNCHANGED > Z_BYTE)
10039 abort ();
10036 10040
10037 /* If window starts after a line end, and the last change is in 10041 /* If window starts after a line end, and the last change is in
10038 front of that newline, then changes don't affect the display. 10042 front of that newline, then changes don't affect the display.
@@ -10691,7 +10695,17 @@ DEFUN ("trace-redisplay-toggle", Ftrace_redisplay_toggle,
10691 trace_redisplay_p = !trace_redisplay_p; 10695 trace_redisplay_p = !trace_redisplay_p;
10692 return Qnil; 10696 return Qnil;
10693} 10697}
10694 10698
10699
10700DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, 1, "",
10701 "Print STRING to stderr.")
10702 (string)
10703 Lisp_Object string;
10704{
10705 CHECK_STRING (string, 0);
10706 fprintf (stderr, "%s", XSTRING (string)->data);
10707 return Qnil;
10708}
10695 10709
10696#endif /* GLYPH_DEBUG */ 10710#endif /* GLYPH_DEBUG */
10697 10711
@@ -12802,6 +12816,7 @@ syms_of_xdisp ()
12802 defsubr (&Sdump_glyph_row); 12816 defsubr (&Sdump_glyph_row);
12803 defsubr (&Sdump_tool_bar_row); 12817 defsubr (&Sdump_tool_bar_row);
12804 defsubr (&Strace_redisplay_toggle); 12818 defsubr (&Strace_redisplay_toggle);
12819 defsubr (&Strace_to_stderr);
12805#endif 12820#endif
12806 12821
12807 staticpro (&Qmenu_bar_update_hook); 12822 staticpro (&Qmenu_bar_update_hook);