aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xterm.c25
2 files changed, 20 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f1a6bc79751..510dbf01a08 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12013-09-02 Dmitry Antipov <dmantipov@yandex.ru> 12013-09-02 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 * xterm.c (toplevel): Drop obsolete comment and move compose_status...
4 (handle_one_xevent): ...to here.
5 (STORE_KEYSYM_FOR_DEBUG): Move under ENABLE_CHECKING and make no-op
6 otherwise.
7
82013-09-02 Dmitry Antipov <dmantipov@yandex.ru>
9
3 * msdos.c (IT_set_terminal_window): Remove no-op. 10 * msdos.c (IT_set_terminal_window): Remove no-op.
4 (initialize_msdos_display): Adjust terminal setup. 11 (initialize_msdos_display): Adjust terminal setup.
5 * w32console.c (w32con_set_terminal_window): Remove no-op. 12 * w32console.c (w32con_set_terminal_window): Remove no-op.
diff --git a/src/xterm.c b/src/xterm.c
index 2a5807a81b5..c4e3aeaa615 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5622,18 +5622,7 @@ x_scroll_bar_clear (struct frame *f)
5622#endif /* not USE_TOOLKIT_SCROLL_BARS */ 5622#endif /* not USE_TOOLKIT_SCROLL_BARS */
5623} 5623}
5624 5624
5625 5625#ifdef ENABLE_CHECKING
5626/* The main X event-reading loop - XTread_socket. */
5627
5628/* This holds the state XLookupString needs to implement dead keys
5629 and other tricks known as "compose processing". _X Window System_
5630 says that a portable program can't use this, but Stephen Gildea assures
5631 me that letting the compiler initialize it to zeros will work okay.
5632
5633 This must be defined outside of XTread_socket, for the same reasons
5634 given for enter_timestamp, above. */
5635
5636static XComposeStatus compose_status;
5637 5626
5638/* Record the last 100 characters stored 5627/* Record the last 100 characters stored
5639 to help debug the loss-of-chars-during-GC problem. */ 5628 to help debug the loss-of-chars-during-GC problem. */
@@ -5646,6 +5635,12 @@ static short temp_buffer[100];
5646 temp_index = 0; \ 5635 temp_index = 0; \
5647 temp_buffer[temp_index++] = (keysym) 5636 temp_buffer[temp_index++] = (keysym)
5648 5637
5638#else /* not ENABLE_CHECKING */
5639
5640#define STORE_KEYSYM_FOR_DEBUG(keysym) ((void)0)
5641
5642#endif /* ENABLE_CHECKING */
5643
5649/* Set this to nonzero to fake an "X I/O error" 5644/* Set this to nonzero to fake an "X I/O error"
5650 on a particular display. */ 5645 on a particular display. */
5651 5646
@@ -5783,6 +5778,12 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr,
5783 struct coding_system coding; 5778 struct coding_system coding;
5784 XEvent event = *eventptr; 5779 XEvent event = *eventptr;
5785 Mouse_HLInfo *hlinfo = &dpyinfo->mouse_highlight; 5780 Mouse_HLInfo *hlinfo = &dpyinfo->mouse_highlight;
5781 /* This holds the state XLookupString needs to implement dead keys
5782 and other tricks known as "compose processing". _X Window System_
5783 says that a portable program can't use this, but Stephen Gildea assures
5784 me that letting the compiler initialize it to zeros will work okay. */
5785 static XComposeStatus compose_status;
5786
5786 USE_SAFE_ALLOCA; 5787 USE_SAFE_ALLOCA;
5787 5788
5788 *finish = X_EVENT_NORMAL; 5789 *finish = X_EVENT_NORMAL;