# HG changeset patch # User Chong Yidong # Date 1219795686 0 # Node ID 7d48c48bc07e5b4b5ae6a2a0ed81303f19e3d02d # Parent 30375d5db7471e3841c4db99dc83e7c03839b66a (x_term_init): Temporarily hide the partially initialized terminal while calling vendor-specific-keysyms. diff -r 30375d5db747 -r 7d48c48bc07e src/xterm.c --- a/src/xterm.c Wed Aug 27 00:06:53 2008 +0000 +++ b/src/xterm.c Wed Aug 27 00:08:06 2008 +0000 @@ -10122,11 +10122,15 @@ if (!EQ (XSYMBOL (Qvendor_specific_keysyms)->function, Qunbound)) { char *vendor = ServerVendor (dpy); + /* Temporarily hide the partially initialized terminal */ + terminal_list = terminal->next_terminal; UNBLOCK_INPUT; terminal->kboard->Vsystem_key_alist = call1 (Qvendor_specific_keysyms, vendor ? build_string (vendor) : empty_unibyte_string); BLOCK_INPUT; + terminal->next_terminal = terminal_list; + terminal_list = terminal; } terminal->kboard->next_kboard = all_kboards;