diff options
| author | Chong Yidong | 2008-08-27 00:08:06 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-08-27 00:08:06 +0000 |
| commit | f1a943aeba9aa3ae067f282a140d85a8ca474252 (patch) | |
| tree | ce1ad5ec87ab3d917a151d91deb16ef56fd46dc4 /src | |
| parent | ffd1cd8a5869fff9d5ae437e2e60fca1d44dad13 (diff) | |
| download | emacs-f1a943aeba9aa3ae067f282a140d85a8ca474252.tar.gz emacs-f1a943aeba9aa3ae067f282a140d85a8ca474252.zip | |
(x_term_init): Temporarily hide the partially initialized terminal
while calling vendor-specific-keysyms.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
| 10122 | if (!EQ (XSYMBOL (Qvendor_specific_keysyms)->function, Qunbound)) | 10122 | if (!EQ (XSYMBOL (Qvendor_specific_keysyms)->function, Qunbound)) |
| 10123 | { | 10123 | { |
| 10124 | char *vendor = ServerVendor (dpy); | 10124 | char *vendor = ServerVendor (dpy); |
| 10125 | /* Temporarily hide the partially initialized terminal */ | ||
| 10126 | terminal_list = terminal->next_terminal; | ||
| 10125 | UNBLOCK_INPUT; | 10127 | UNBLOCK_INPUT; |
| 10126 | terminal->kboard->Vsystem_key_alist | 10128 | terminal->kboard->Vsystem_key_alist |
| 10127 | = call1 (Qvendor_specific_keysyms, | 10129 | = call1 (Qvendor_specific_keysyms, |
| 10128 | vendor ? build_string (vendor) : empty_unibyte_string); | 10130 | vendor ? build_string (vendor) : empty_unibyte_string); |
| 10129 | BLOCK_INPUT; | 10131 | BLOCK_INPUT; |
| 10132 | terminal->next_terminal = terminal_list; | ||
| 10133 | terminal_list = terminal; | ||
| 10130 | } | 10134 | } |
| 10131 | 10135 | ||
| 10132 | terminal->kboard->next_kboard = all_kboards; | 10136 | terminal->kboard->next_kboard = all_kboards; |