diff options
| author | Chong Yidong | 2011-02-12 18:40:43 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-02-12 18:40:43 -0500 |
| commit | 84eb0351d8be4811897c8cf62a69757ff5d14001 (patch) | |
| tree | 80162dabf78b97982b32679e2cb7e377d5b12d01 /src | |
| parent | cdfa139da44fd9b1a5425400635e474e85d866f4 (diff) | |
| parent | 165bc5a066990bace024c04ba431f140a25d0bfd (diff) | |
| download | emacs-84eb0351d8be4811897c8cf62a69757ff5d14001.tar.gz emacs-84eb0351d8be4811897c8cf62a69757ff5d14001.zip | |
Merge changes from emacs-23 branch
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 27 | ||||
| -rw-r--r-- | src/nsterm.m | 2 | ||||
| -rw-r--r-- | src/terminal.c | 19 | ||||
| -rw-r--r-- | src/window.c | 2 |
4 files changed, 45 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4469297e32f..4e6dd9e1de1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,26 @@ | |||
| 1 | 2011-02-12 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * terminal.c (create_terminal): Use default-keyboard-coding-system | ||
| 4 | and default-terminal-coding-system to initialize coding systems of | ||
| 5 | the new terminal. (Bug#7840) | ||
| 6 | |||
| 7 | 2011-02-12 Martin Rudalics <rudalics@gmx.at> | ||
| 8 | |||
| 9 | * window.c (select_window): Check inhibit_point_swap argument when | ||
| 10 | deciding whether to return immediately. | ||
| 11 | |||
| 12 | 2011-02-12 Jan Djärv <jan.h.d@swipnet.se> | ||
| 13 | |||
| 14 | * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become | ||
| 15 | zero (Bug#7348). | ||
| 16 | |||
| 17 | 2011-02-12 Chong Yidong <cyd@stupidchicken.com> | ||
| 18 | |||
| 19 | * config.in (TERMINFO): New definition. | ||
| 20 | |||
| 21 | * s/netbsd.h: Use it to choose between terminfo and termcap | ||
| 22 | (Bug#7642). | ||
| 23 | |||
| 1 | 2011-02-12 Paul Eggert <eggert@cs.ucla.edu> | 24 | 2011-02-12 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 25 | ||
| 3 | * md5.c (md5_process_bytes): Use sizeof, not __alignof__. | 26 | * md5.c (md5_process_bytes): Use sizeof, not __alignof__. |
| @@ -1610,7 +1633,7 @@ | |||
| 1610 | 1633 | ||
| 1611 | * gtkutil.c (menubar_map_cb): New function (Bug#7425). | 1634 | * gtkutil.c (menubar_map_cb): New function (Bug#7425). |
| 1612 | (xg_update_frame_menubar): Connect signal map to menubar_map_cb. | 1635 | (xg_update_frame_menubar): Connect signal map to menubar_map_cb. |
| 1613 | Use 23 as menubar height if 0. (Bug#7425). | 1636 | Use 23 as menubar height if 0. (Bug#7425). |
| 1614 | 1637 | ||
| 1615 | 2010-11-26 Eli Zaretskii <eliz@gnu.org> | 1638 | 2010-11-26 Eli Zaretskii <eliz@gnu.org> |
| 1616 | 1639 | ||
| @@ -2617,7 +2640,7 @@ | |||
| 2617 | is more portable. | 2640 | is more portable. |
| 2618 | 2641 | ||
| 2619 | * keyboard.c (gobble_input): Move call of xd_read_queued_messages ... | 2642 | * keyboard.c (gobble_input): Move call of xd_read_queued_messages ... |
| 2620 | (kbd_buffer_get_event): ... here. This is needed for cygwin, which | 2643 | (kbd_buffer_get_event): ... here. This is needed for cygwin, which |
| 2621 | has not defined SIGIO. | 2644 | has not defined SIGIO. |
| 2622 | 2645 | ||
| 2623 | 2010-10-08 Chong Yidong <cyd@stupidchicken.com> | 2646 | 2010-10-08 Chong Yidong <cyd@stupidchicken.com> |
diff --git a/src/nsterm.m b/src/nsterm.m index e83b14748df..590a76ba16d 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -5783,6 +5783,7 @@ ns_term_shutdown (int sig) | |||
| 5783 | win = nwin; | 5783 | win = nwin; |
| 5784 | condemned = NO; | 5784 | condemned = NO; |
| 5785 | pixel_height = NSHeight (r); | 5785 | pixel_height = NSHeight (r); |
| 5786 | if (pixel_height == 0) pixel_height = 1; | ||
| 5786 | min_portion = 20 / pixel_height; | 5787 | min_portion = 20 / pixel_height; |
| 5787 | 5788 | ||
| 5788 | frame = XFRAME (XWINDOW (win)->frame); | 5789 | frame = XFRAME (XWINDOW (win)->frame); |
| @@ -5812,6 +5813,7 @@ ns_term_shutdown (int sig) | |||
| 5812 | NSTRACE (EmacsScroller_setFrame); | 5813 | NSTRACE (EmacsScroller_setFrame); |
| 5813 | /* BLOCK_INPUT; */ | 5814 | /* BLOCK_INPUT; */ |
| 5814 | pixel_height = NSHeight (newRect); | 5815 | pixel_height = NSHeight (newRect); |
| 5816 | if (pixel_height == 0) pixel_height = 1; | ||
| 5815 | min_portion = 20 / pixel_height; | 5817 | min_portion = 20 / pixel_height; |
| 5816 | [super setFrame: newRect]; | 5818 | [super setFrame: newRect]; |
| 5817 | [self display]; | 5819 | [self display]; |
diff --git a/src/terminal.c b/src/terminal.c index 09c57bc2b0c..ba7d208ac4d 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -223,6 +223,7 @@ struct terminal * | |||
| 223 | create_terminal (void) | 223 | create_terminal (void) |
| 224 | { | 224 | { |
| 225 | struct terminal *terminal = allocate_terminal (); | 225 | struct terminal *terminal = allocate_terminal (); |
| 226 | Lisp_Object terminal_coding, keyboard_coding; | ||
| 226 | 227 | ||
| 227 | terminal->name = NULL; | 228 | terminal->name = NULL; |
| 228 | terminal->next_terminal = terminal_list; | 229 | terminal->next_terminal = terminal_list; |
| @@ -235,8 +236,22 @@ create_terminal (void) | |||
| 235 | terminal->terminal_coding = | 236 | terminal->terminal_coding = |
| 236 | (struct coding_system *) xmalloc (sizeof (struct coding_system)); | 237 | (struct coding_system *) xmalloc (sizeof (struct coding_system)); |
| 237 | 238 | ||
| 238 | setup_coding_system (Qno_conversion, terminal->keyboard_coding); | 239 | /* If default coding systems for the terminal and the keyboard are |
| 239 | setup_coding_system (Qundecided, terminal->terminal_coding); | 240 | already defined, use them in preference to the defaults. This is |
| 241 | needed when Emacs runs in daemon mode. */ | ||
| 242 | keyboard_coding = SYMBOL_VALUE (intern ("default-keyboard-coding-system")); | ||
| 243 | if (NILP (keyboard_coding) | ||
| 244 | || EQ (keyboard_coding, Qunbound) | ||
| 245 | || NILP (Fcoding_system_p (keyboard_coding))) | ||
| 246 | keyboard_coding = Qno_conversion; | ||
| 247 | terminal_coding = SYMBOL_VALUE (intern ("default-terminal-coding-system")); | ||
| 248 | if (NILP (terminal_coding) | ||
| 249 | || EQ (terminal_coding, Qunbound) | ||
| 250 | || NILP (Fcoding_system_p (terminal_coding))) | ||
| 251 | terminal_coding = Qundecided; | ||
| 252 | |||
| 253 | setup_coding_system (keyboard_coding, terminal->keyboard_coding); | ||
| 254 | setup_coding_system (terminal_coding, terminal->terminal_coding); | ||
| 240 | 255 | ||
| 241 | terminal->param_alist = Qnil; | 256 | terminal->param_alist = Qnil; |
| 242 | return terminal; | 257 | return terminal; |
diff --git a/src/window.c b/src/window.c index abf01758c3f..b158073a3db 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3517,7 +3517,7 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap) | |||
| 3517 | record_buffer (w->buffer); | 3517 | record_buffer (w->buffer); |
| 3518 | } | 3518 | } |
| 3519 | 3519 | ||
| 3520 | if (EQ (window, selected_window)) | 3520 | if (EQ (window, selected_window) && !inhibit_point_swap) |
| 3521 | return window; | 3521 | return window; |
| 3522 | 3522 | ||
| 3523 | sf = SELECTED_FRAME (); | 3523 | sf = SELECTED_FRAME (); |