]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_term_init): Temporarily hide the partially initialized terminal
authorChong Yidong <cyd@stupidchicken.com>
Wed, 27 Aug 2008 00:08:06 +0000 (00:08 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 27 Aug 2008 00:08:06 +0000 (00:08 +0000)
while calling vendor-specific-keysyms.

src/xterm.c

index 63d86bf6cbaaebaea50ee6372fc68852bd9710f2..b3b3d961cb9afcf13550e0dc64410564ec0d1db4 100644 (file)
@@ -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;