diff options
| author | Joakim Verona | 2012-08-19 02:44:11 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-08-19 02:44:11 +0200 |
| commit | 5436d1df5e2ba0b4d4f72b03a1cd09b20403654b (patch) | |
| tree | 532faa27319b3bb199d414dc85e63a58246d30b0 /src/xterm.c | |
| parent | d02344322b0d2fea8dd9ad9dd0a6c70e058f967b (diff) | |
| parent | e757f1c6f393cf82057dbee0a4325b07f0fd55c4 (diff) | |
| download | emacs-5436d1df5e2ba0b4d4f72b03a1cd09b20403654b.tar.gz emacs-5436d1df5e2ba0b4d4f72b03a1cd09b20403654b.zip | |
upstream
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/xterm.c b/src/xterm.c index 2e71ccd94a0..c5a916d9d2e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -50,7 +50,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | #include "systime.h" | 50 | #include "systime.h" |
| 51 | 51 | ||
| 52 | #include <fcntl.h> | 52 | #include <fcntl.h> |
| 53 | #include <ctype.h> | ||
| 54 | #include <errno.h> | 53 | #include <errno.h> |
| 55 | #include <setjmp.h> | 54 | #include <setjmp.h> |
| 56 | #include <sys/stat.h> | 55 | #include <sys/stat.h> |
| @@ -3594,7 +3593,7 @@ x_frame_rehighlight (struct x_display_info *dpyinfo) | |||
| 3594 | : dpyinfo->x_focus_frame); | 3593 | : dpyinfo->x_focus_frame); |
| 3595 | if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) | 3594 | if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) |
| 3596 | { | 3595 | { |
| 3597 | FSET (dpyinfo->x_focus_frame, focus_frame, Qnil); | 3596 | fset_focus_frame (dpyinfo->x_focus_frame, Qnil); |
| 3598 | dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; | 3597 | dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame; |
| 3599 | } | 3598 | } |
| 3600 | } | 3599 | } |
| @@ -5028,7 +5027,7 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height) | |||
| 5028 | bar->next = FRAME_SCROLL_BARS (f); | 5027 | bar->next = FRAME_SCROLL_BARS (f); |
| 5029 | bar->prev = Qnil; | 5028 | bar->prev = Qnil; |
| 5030 | XSETVECTOR (barobj, bar); | 5029 | XSETVECTOR (barobj, bar); |
| 5031 | FSET (f, scroll_bars, barobj); | 5030 | fset_scroll_bars (f, barobj); |
| 5032 | if (!NILP (bar->next)) | 5031 | if (!NILP (bar->next)) |
| 5033 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); | 5032 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); |
| 5034 | 5033 | ||
| @@ -5191,7 +5190,7 @@ x_scroll_bar_remove (struct scroll_bar *bar) | |||
| 5191 | #endif | 5190 | #endif |
| 5192 | 5191 | ||
| 5193 | /* Dissociate this scroll bar from its window. */ | 5192 | /* Dissociate this scroll bar from its window. */ |
| 5194 | WSET (XWINDOW (bar->window), vertical_scroll_bar, Qnil); | 5193 | wset_vertical_scroll_bar (XWINDOW (bar->window), Qnil); |
| 5195 | 5194 | ||
| 5196 | UNBLOCK_INPUT; | 5195 | UNBLOCK_INPUT; |
| 5197 | } | 5196 | } |
| @@ -5405,7 +5404,7 @@ XTset_vertical_scroll_bar (struct window *w, int portion, int whole, int positio | |||
| 5405 | #endif /* not USE_TOOLKIT_SCROLL_BARS */ | 5404 | #endif /* not USE_TOOLKIT_SCROLL_BARS */ |
| 5406 | 5405 | ||
| 5407 | XSETVECTOR (barobj, bar); | 5406 | XSETVECTOR (barobj, bar); |
| 5408 | WSET (w, vertical_scroll_bar, barobj); | 5407 | wset_vertical_scroll_bar (w, barobj); |
| 5409 | } | 5408 | } |
| 5410 | 5409 | ||
| 5411 | 5410 | ||
| @@ -5429,12 +5428,12 @@ XTcondemn_scroll_bars (FRAME_PTR frame) | |||
| 5429 | { | 5428 | { |
| 5430 | Lisp_Object bar; | 5429 | Lisp_Object bar; |
| 5431 | bar = FRAME_SCROLL_BARS (frame); | 5430 | bar = FRAME_SCROLL_BARS (frame); |
| 5432 | FSET (frame, scroll_bars, XSCROLL_BAR (bar)->next); | 5431 | fset_scroll_bars (frame, XSCROLL_BAR (bar)->next); |
| 5433 | XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame); | 5432 | XSCROLL_BAR (bar)->next = FRAME_CONDEMNED_SCROLL_BARS (frame); |
| 5434 | XSCROLL_BAR (bar)->prev = Qnil; | 5433 | XSCROLL_BAR (bar)->prev = Qnil; |
| 5435 | if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame))) | 5434 | if (! NILP (FRAME_CONDEMNED_SCROLL_BARS (frame))) |
| 5436 | XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar; | 5435 | XSCROLL_BAR (FRAME_CONDEMNED_SCROLL_BARS (frame))->prev = bar; |
| 5437 | FSET (frame, condemned_scroll_bars, bar); | 5436 | fset_condemned_scroll_bars (frame, bar); |
| 5438 | } | 5437 | } |
| 5439 | } | 5438 | } |
| 5440 | 5439 | ||
| @@ -5466,7 +5465,7 @@ XTredeem_scroll_bar (struct window *window) | |||
| 5466 | return; | 5465 | return; |
| 5467 | else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f), | 5466 | else if (EQ (FRAME_CONDEMNED_SCROLL_BARS (f), |
| 5468 | window->vertical_scroll_bar)) | 5467 | window->vertical_scroll_bar)) |
| 5469 | FSET (f, condemned_scroll_bars, bar->next); | 5468 | fset_condemned_scroll_bars (f, bar->next); |
| 5470 | else | 5469 | else |
| 5471 | /* If its prev pointer is nil, it must be at the front of | 5470 | /* If its prev pointer is nil, it must be at the front of |
| 5472 | one or the other! */ | 5471 | one or the other! */ |
| @@ -5481,7 +5480,7 @@ XTredeem_scroll_bar (struct window *window) | |||
| 5481 | bar->next = FRAME_SCROLL_BARS (f); | 5480 | bar->next = FRAME_SCROLL_BARS (f); |
| 5482 | bar->prev = Qnil; | 5481 | bar->prev = Qnil; |
| 5483 | XSETVECTOR (barobj, bar); | 5482 | XSETVECTOR (barobj, bar); |
| 5484 | FSET (f, scroll_bars, barobj); | 5483 | fset_scroll_bars (f, barobj); |
| 5485 | if (! NILP (bar->next)) | 5484 | if (! NILP (bar->next)) |
| 5486 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); | 5485 | XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); |
| 5487 | } | 5486 | } |
| @@ -5498,7 +5497,7 @@ XTjudge_scroll_bars (FRAME_PTR f) | |||
| 5498 | 5497 | ||
| 5499 | /* Clear out the condemned list now so we won't try to process any | 5498 | /* Clear out the condemned list now so we won't try to process any |
| 5500 | more events on the hapless scroll bars. */ | 5499 | more events on the hapless scroll bars. */ |
| 5501 | FSET (f, condemned_scroll_bars, Qnil); | 5500 | fset_condemned_scroll_bars (f, Qnil); |
| 5502 | 5501 | ||
| 5503 | for (; ! NILP (bar); bar = next) | 5502 | for (; ! NILP (bar); bar = next) |
| 5504 | { | 5503 | { |
| @@ -7849,7 +7848,7 @@ x_connection_closed (Display *dpy, const char *error_message) | |||
| 7849 | { | 7848 | { |
| 7850 | /* Set this to t so that delete_frame won't get confused | 7849 | /* Set this to t so that delete_frame won't get confused |
| 7851 | trying to find a replacement. */ | 7850 | trying to find a replacement. */ |
| 7852 | KSET (FRAME_KBOARD (XFRAME (frame)), Vdefault_minibuffer_frame, Qt); | 7851 | kset_default_minibuffer_frame (FRAME_KBOARD (XFRAME (frame)), Qt); |
| 7853 | delete_frame (frame, Qnoelisp); | 7852 | delete_frame (frame, Qnoelisp); |
| 7854 | } | 7853 | } |
| 7855 | 7854 | ||
| @@ -10133,7 +10132,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10133 | { | 10132 | { |
| 10134 | terminal->kboard = xmalloc (sizeof *terminal->kboard); | 10133 | terminal->kboard = xmalloc (sizeof *terminal->kboard); |
| 10135 | init_kboard (terminal->kboard); | 10134 | init_kboard (terminal->kboard); |
| 10136 | KSET (terminal->kboard, Vwindow_system, Qx); | 10135 | kset_window_system (terminal->kboard, Qx); |
| 10137 | 10136 | ||
| 10138 | /* Add the keyboard to the list before running Lisp code (via | 10137 | /* Add the keyboard to the list before running Lisp code (via |
| 10139 | Qvendor_specific_keysyms below), since these are not traced | 10138 | Qvendor_specific_keysyms below), since these are not traced |
| @@ -10155,9 +10154,10 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10155 | /* Temporarily hide the partially initialized terminal. */ | 10154 | /* Temporarily hide the partially initialized terminal. */ |
| 10156 | terminal_list = terminal->next_terminal; | 10155 | terminal_list = terminal->next_terminal; |
| 10157 | UNBLOCK_INPUT; | 10156 | UNBLOCK_INPUT; |
| 10158 | KSET (terminal->kboard, Vsystem_key_alist, | 10157 | kset_system_key_alist |
| 10159 | call1 (Qvendor_specific_keysyms, | 10158 | (terminal->kboard, |
| 10160 | vendor ? build_string (vendor) : empty_unibyte_string)); | 10159 | call1 (Qvendor_specific_keysyms, |
| 10160 | vendor ? build_string (vendor) : empty_unibyte_string)); | ||
| 10161 | BLOCK_INPUT; | 10161 | BLOCK_INPUT; |
| 10162 | terminal->next_terminal = terminal_list; | 10162 | terminal->next_terminal = terminal_list; |
| 10163 | terminal_list = terminal; | 10163 | terminal_list = terminal; |