diff options
| author | Kenichi Handa | 2012-08-22 18:05:50 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-08-22 18:05:50 +0900 |
| commit | fabc1281e9cde34ff9a19d843316d2ceca8647ad (patch) | |
| tree | f38f13cab3ec6c32ab8ab49ea2e60f64969a0d22 /src/xterm.c | |
| parent | 4ff819d728960bf5e52b72501c606f4bb3fde028 (diff) | |
| parent | 842e3a93aa3a0826cb4148376e54cd1527d10901 (diff) | |
| download | emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.tar.gz emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.zip | |
merge trunk
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/xterm.c b/src/xterm.c index b1a73d07998..118c8767c23 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3584,7 +3584,7 @@ x_frame_rehighlight (struct x_display_info *dpyinfo) | |||
| 3584 | : dpyinfo->x_focus_frame); | 3584 | : dpyinfo->x_focus_frame); |
| 3585 | if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) | 3585 | if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) |
| 3586 | { | 3586 | { |
| 3587 | FSET (dpyinfo->x_focus_frame, focus_frame, Qnil); | 3587 | fset_focus_frame (dpyinfo->x_focus_frame, Qnil); |
| 3588 | dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; | 3588 | dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; |
| 3589 | } | 3589 | } |
| 3590 | } | 3590 | } |
| @@ -5018,7 +5018,7 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height) | |||
| 5018 | bar->next = FRAME_SCROLL_BARS (f); | 5018 | bar->next = FRAME_SCROLL_BARS (f); |
| 5019 | bar->prev = Qnil; | 5019 | bar->prev = Qnil; |
| 5020 | XSETVECTOR (barobj, bar); | 5020 | XSETVECTOR (barobj, bar); |
| 5021 | FSET (f, scroll_bars, barobj); | 5021 | fset_scroll_bars (f, barobj); |
| 5022 | if (!NILP (bar->next)) | 5022 | if (!NILP (bar->next)) |
| 5023 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); | 5023 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); |
| 5024 | 5024 | ||
| @@ -5181,7 +5181,7 @@ x_scroll_bar_remove (struct scroll_bar *bar) | |||
| 5181 | #endif | 5181 | #endif |
| 5182 | 5182 | ||
| 5183 | /* Dissociate this scroll bar from its window. */ | 5183 | /* Dissociate this scroll bar from its window. */ |
| 5184 | WSET (XWINDOW (bar->window), vertical_scroll_bar, Qnil); | 5184 | wset_vertical_scroll_bar (XWINDOW (bar->window), Qnil); |
| 5185 | 5185 | ||
| 5186 | UNBLOCK_INPUT; | 5186 | UNBLOCK_INPUT; |
| 5187 | } | 5187 | } |
| @@ -5395,7 +5395,7 @@ XTset_vertical_scroll_bar (struct window *w, int portion, int whole, int positio | |||
| 5395 | #endif /* not USE_TOOLKIT_SCROLL_BARS */ | 5395 | #endif /* not USE_TOOLKIT_SCROLL_BARS */ |
| 5396 | 5396 | ||
| 5397 | XSETVECTOR (barobj, bar); | 5397 | XSETVECTOR (barobj, bar); |
| 5398 | WSET (w, vertical_scroll_bar, barobj); | 5398 | wset_vertical_scroll_bar (w, barobj); |
| 5399 | } | 5399 | } |
| 5400 | 5400 | ||
| 5401 | 5401 | ||
| @@ -5419,12 +5419,12 @@ XTcondemn_scroll_bars (FRAME_PTR frame) | |||
| 5419 | { | 5419 | { |
| 5420 | Lisp_Object bar; | 5420 | Lisp_Object bar; |
| 5421 | bar = FRAME_SCROLL_BARS (frame); | 5421 | bar = FRAME_SCROLL_BARS (frame); |
| 5422 | FSET (frame, scroll_bars, XSCROLL_BAR (bar)->next); | 5422 | fset_scroll_bars (frame, XSCROLL_BAR (bar)->next); |
| 5423 | XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame); | 5423 | XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame); |
| 5424 | XSCROLL_BAR (bar)->prev = Qnil; | 5424 | XSCROLL_BAR (bar)->prev = Qnil; |
| 5425 | if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame))) | 5425 | if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame))) |
| 5426 | XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar; | 5426 | XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar; |
| 5427 | FSET (frame, condemned_scroll_bars, bar); | 5427 | fset_condemned_scroll_bars (frame, bar); |
| 5428 | } | 5428 | } |
| 5429 | } | 5429 | } |
| 5430 | 5430 | ||
| @@ -5456,7 +5456,7 @@ XTredeem_scroll_bar (struct window *window) | |||
| 5456 | return; | 5456 | return; |
| 5457 | else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f), | 5457 | else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f), |
| 5458 | window->vertical_scroll_bar)) | 5458 | window->vertical_scroll_bar)) |
| 5459 | FSET (f, condemned_scroll_bars, bar->next); | 5459 | fset_condemned_scroll_bars (f, bar->next); |
| 5460 | else | 5460 | else |
| 5461 | /* If its prev pointer is nil, it must be at the front of | 5461 | /* If its prev pointer is nil, it must be at the front of |
| 5462 | one or the other! */ | 5462 | one or the other! */ |
| @@ -5471,7 +5471,7 @@ XTredeem_scroll_bar (struct window *window) | |||
| 5471 | bar->next = FRAME_SCROLL_BARS (f); | 5471 | bar->next = FRAME_SCROLL_BARS (f); |
| 5472 | bar->prev = Qnil; | 5472 | bar->prev = Qnil; |
| 5473 | XSETVECTOR (barobj, bar); | 5473 | XSETVECTOR (barobj, bar); |
| 5474 | FSET (f, scroll_bars, barobj); | 5474 | fset_scroll_bars (f, barobj); |
| 5475 | if (! NILP (bar->next)) | 5475 | if (! NILP (bar->next)) |
| 5476 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); | 5476 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); |
| 5477 | } | 5477 | } |
| @@ -5488,7 +5488,7 @@ XTjudge_scroll_bars (FRAME_PTR f) | |||
| 5488 | 5488 | ||
| 5489 | /* Clear out the condemned list now so we won't try to process any | 5489 | /* Clear out the condemned list now so we won't try to process any |
| 5490 | more events on the hapless scroll bars. */ | 5490 | more events on the hapless scroll bars. */ |
| 5491 | FSET (f, condemned_scroll_bars, Qnil); | 5491 | fset_condemned_scroll_bars (f, Qnil); |
| 5492 | 5492 | ||
| 5493 | for (; ! NILP (bar); bar = next) | 5493 | for (; ! NILP (bar); bar = next) |
| 5494 | { | 5494 | { |
| @@ -7834,7 +7834,7 @@ x_connection_closed (Display *dpy, const char *error_message) | |||
| 7834 | { | 7834 | { |
| 7835 | /* Set this to t so that delete_frame won't get confused | 7835 | /* Set this to t so that delete_frame won't get confused |
| 7836 | trying to find a replacement. */ | 7836 | trying to find a replacement. */ |
| 7837 | KSET (FRAME_KBOARD (XFRAME (frame)), Vdefault_minibuffer_frame, Qt); | 7837 | kset_default_minibuffer_frame (FRAME_KBOARD (XFRAME (frame)), Qt); |
| 7838 | delete_frame (frame, Qnoelisp); | 7838 | delete_frame (frame, Qnoelisp); |
| 7839 | } | 7839 | } |
| 7840 | 7840 | ||
| @@ -10114,7 +10114,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10114 | { | 10114 | { |
| 10115 | terminal->kboard = xmalloc (sizeof *terminal->kboard); | 10115 | terminal->kboard = xmalloc (sizeof *terminal->kboard); |
| 10116 | init_kboard (terminal->kboard); | 10116 | init_kboard (terminal->kboard); |
| 10117 | KSET (terminal->kboard, Vwindow_system, Qx); | 10117 | kset_window_system (terminal->kboard, Qx); |
| 10118 | 10118 | ||
| 10119 | /* Add the keyboard to the list before running Lisp code (via | 10119 | /* Add the keyboard to the list before running Lisp code (via |
| 10120 | Qvendor_specific_keysyms below), since these are not traced | 10120 | Qvendor_specific_keysyms below), since these are not traced |
| @@ -10136,9 +10136,10 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10136 | /* Temporarily hide the partially initialized terminal. */ | 10136 | /* Temporarily hide the partially initialized terminal. */ |
| 10137 | terminal_list = terminal->next_terminal; | 10137 | terminal_list = terminal->next_terminal; |
| 10138 | UNBLOCK_INPUT; | 10138 | UNBLOCK_INPUT; |
| 10139 | KSET (terminal->kboard, Vsystem_key_alist, | 10139 | kset_system_key_alist |
| 10140 | call1 (Qvendor_specific_keysyms, | 10140 | (terminal->kboard, |
| 10141 | vendor ? build_string (vendor) : empty_unibyte_string)); | 10141 | call1 (Qvendor_specific_keysyms, |
| 10142 | vendor ? build_string (vendor) : empty_unibyte_string)); | ||
| 10142 | BLOCK_INPUT; | 10143 | BLOCK_INPUT; |
| 10143 | terminal->next_terminal = terminal_list; | 10144 | terminal->next_terminal = terminal_list; |
| 10144 | terminal_list = terminal; | 10145 | terminal_list = terminal; |