From: Chong Yidong Date: Wed, 27 Aug 2008 00:08:06 +0000 (+0000) Subject: (x_term_init): Temporarily hide the partially initialized terminal X-Git-Tag: emacs-pretest-23.0.90~3249 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1a943aeba9aa3ae067f282a140d85a8ca474252;p=emacs.git (x_term_init): Temporarily hide the partially initialized terminal while calling vendor-specific-keysyms. --- diff --git a/src/xterm.c b/src/xterm.c index 63d86bf6cba..b3b3d961cb9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10122,11 +10122,15 @@ x_term_init (display_name, xrm_option, resource_name) 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;