diff options
| author | Dmitry Antipov | 2014-10-14 16:45:41 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-10-14 16:45:41 +0400 |
| commit | bb75cdf9c74ab19b75532da1f953233a47eedab4 (patch) | |
| tree | b8b4d07acaf36cdce7485fb459e7376975ebd5f7 /src/nsfns.m | |
| parent | 5fa75d8eba2d43408fd7831dcfd69c21e31c21f3 (diff) | |
| download | emacs-bb75cdf9c74ab19b75532da1f953233a47eedab4.tar.gz emacs-bb75cdf9c74ab19b75532da1f953233a47eedab4.zip | |
Cleanup terminal handling code.
* dispextern.h (get_named_tty): Remove prototype but...
* termhooks.h (get_named_terminal): ...resurrect it under
more meaningful name.
(get_terminal): Likewise, but with...
(decode_live_terminal): ...this name.
(decode_tty_terminal): Add prototype.
* term.c (get_tty_terminal): Remove.
(get_named_tty): Remove.
(Ftty_display_color_p, Ftty_display_color_cells, Ftty_type)
(Fcontrolling_tty_p, Fsuspend_tty, Fresume_tty):
Use decode_tty_terminal.
(Ftty_no_underline, Ftty_top_frame): Use decode_live_terminal.
* terminal.c (get_terminal): Refactor to...
(decode_terminal, decode_live_terminal): ...new functions.
(decode_tty_terminal): Replacement for get_tty_terminal.
(get_named_terminal): Likewise for get_named_tty.
* coding.c (Fset_terminal_coding_system_internal)
(Fterminal_coding_system, Fset_keyboard_coding_system_internal):
(Fkeyboard_coding_system):
* composite.c (Fcomposition_get_gstring):
* dispnew.c (Fsend_string_to_terminal):
* frame.c (Fmake_terminal_frame):
* nsfns.m (check_ns_display_info):
* w32fns.c, xfns.c (check_x_display_info):
* xselect.c (frame_for_x_selection): Use decode_live_terminal.
* keyboard.c (handle_interrupt_signal, handle_interrupt)
(Fset_quit_char): Use get_named_terminal.
(Fset_output_flow_control, Fset_input_meta_mode):
Use decode_tty_terminal.
Diffstat (limited to 'src/nsfns.m')
| -rw-r--r-- | src/nsfns.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 5cf8387123e..a93b2724403 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -133,7 +133,7 @@ check_ns_display_info (Lisp_Object object) | |||
| 133 | } | 133 | } |
| 134 | else if (TERMINALP (object)) | 134 | else if (TERMINALP (object)) |
| 135 | { | 135 | { |
| 136 | struct terminal *t = get_terminal (object, 1); | 136 | struct terminal *t = decode_live_terminal (object); |
| 137 | 137 | ||
| 138 | if (t->type != output_ns) | 138 | if (t->type != output_ns) |
| 139 | error ("Terminal %d is not a Nextstep display", t->id); | 139 | error ("Terminal %d is not a Nextstep display", t->id); |
| @@ -2541,7 +2541,7 @@ the attributes: | |||
| 2541 | Internal use only, use `display-monitor-attributes-list' instead. */) | 2541 | Internal use only, use `display-monitor-attributes-list' instead. */) |
| 2542 | (Lisp_Object terminal) | 2542 | (Lisp_Object terminal) |
| 2543 | { | 2543 | { |
| 2544 | struct terminal *term = get_terminal (terminal, 1); | 2544 | struct terminal *term = decode_live_terminal (terminal); |
| 2545 | NSArray *screens; | 2545 | NSArray *screens; |
| 2546 | NSUInteger i, n_monitors; | 2546 | NSUInteger i, n_monitors; |
| 2547 | struct MonitorInfo *monitors; | 2547 | struct MonitorInfo *monitors; |