diff options
| author | Dmitry Antipov | 2013-09-01 20:39:20 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-09-01 20:39:20 +0400 |
| commit | a892a94c4271d1d057ae65a1c63441c9eb0a2e5a (patch) | |
| tree | df678df2db791e1d2ef67219b45adb1c96e9b281 /src | |
| parent | cf91889acb493863b93dc199d2a39e7f3a9b4cd4 (diff) | |
| download | emacs-a892a94c4271d1d057ae65a1c63441c9eb0a2e5a.tar.gz emacs-a892a94c4271d1d057ae65a1c63441c9eb0a2e5a.zip | |
* nsterm.m (ns_set_terminal_modes, ns_reset_terminal_modes):
Remove no-ops.
(ns_create_terminal): Adjust terminal setup.
* w32term.c (w32_set_terminal_modes, w32_reset_terminal_modes):
Remove no-ops.
(w32_create_terminal): Adjust terminal setup.
* xterm.c (XTset_terminal_modes, XTreset_terminal_modes):
Remove no-ops.
(x_create_terminal): Adjust terminal setup.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/nsterm.m | 22 | ||||
| -rw-r--r-- | src/w32term.c | 28 | ||||
| -rw-r--r-- | src/xterm.c | 27 |
4 files changed, 18 insertions, 71 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 96df66999da..48305361f96 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,17 @@ | |||
| 1 | 2013-09-01 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-09-01 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * nsterm.m (ns_set_terminal_modes, ns_reset_terminal_modes): | ||
| 4 | Remove no-ops. | ||
| 5 | (ns_create_terminal): Adjust terminal setup. | ||
| 6 | * w32term.c (w32_set_terminal_modes, w32_reset_terminal_modes): | ||
| 7 | Remove no-ops. | ||
| 8 | (w32_create_terminal): Adjust terminal setup. | ||
| 9 | * xterm.c (XTset_terminal_modes, XTreset_terminal_modes): | ||
| 10 | Remove no-ops. | ||
| 11 | (x_create_terminal): Adjust terminal setup. | ||
| 12 | |||
| 13 | 2013-09-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 14 | |||
| 3 | * dispextern.h (SET_TEXT_POS_FROM_MARKER): Indent. | 15 | * dispextern.h (SET_TEXT_POS_FROM_MARKER): Indent. |
| 4 | (CLIP_TEXT_POS_FROM_MARKER): New macro. | 16 | (CLIP_TEXT_POS_FROM_MARKER): New macro. |
| 5 | * dispnew.c (buffer_posn_from_coords): | 17 | * dispnew.c (buffer_posn_from_coords): |
diff --git a/src/nsterm.m b/src/nsterm.m index 1f4ebcfefd9..e4c88ff2ad4 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -963,24 +963,6 @@ ns_ring_bell (struct frame *f) | |||
| 963 | } | 963 | } |
| 964 | } | 964 | } |
| 965 | 965 | ||
| 966 | |||
| 967 | static void | ||
| 968 | ns_reset_terminal_modes (struct terminal *terminal) | ||
| 969 | /* Externally called as hook */ | ||
| 970 | { | ||
| 971 | NSTRACE (ns_reset_terminal_modes); | ||
| 972 | } | ||
| 973 | |||
| 974 | |||
| 975 | static void | ||
| 976 | ns_set_terminal_modes (struct terminal *terminal) | ||
| 977 | /* Externally called as hook */ | ||
| 978 | { | ||
| 979 | NSTRACE (ns_set_terminal_modes); | ||
| 980 | } | ||
| 981 | |||
| 982 | |||
| 983 | |||
| 984 | /* ========================================================================== | 966 | /* ========================================================================== |
| 985 | 967 | ||
| 986 | Frame / window manager related functions | 968 | Frame / window manager related functions |
| @@ -4050,8 +4032,8 @@ ns_create_terminal (struct ns_display_info *dpyinfo) | |||
| 4050 | terminal->ins_del_lines_hook = 0; /* XXX vestigial? */ | 4032 | terminal->ins_del_lines_hook = 0; /* XXX vestigial? */ |
| 4051 | terminal->delete_glyphs_hook = 0; /* XXX vestigial? */ | 4033 | terminal->delete_glyphs_hook = 0; /* XXX vestigial? */ |
| 4052 | terminal->ring_bell_hook = ns_ring_bell; | 4034 | terminal->ring_bell_hook = ns_ring_bell; |
| 4053 | terminal->reset_terminal_modes_hook = ns_reset_terminal_modes; | 4035 | terminal->reset_terminal_modes_hook = NULL; |
| 4054 | terminal->set_terminal_modes_hook = ns_set_terminal_modes; | 4036 | terminal->set_terminal_modes_hook = NULL; |
| 4055 | terminal->update_begin_hook = ns_update_begin; | 4037 | terminal->update_begin_hook = ns_update_begin; |
| 4056 | terminal->update_end_hook = ns_update_end; | 4038 | terminal->update_end_hook = ns_update_end; |
| 4057 | terminal->set_terminal_window_hook = NULL; /* XXX vestigial? */ | 4039 | terminal->set_terminal_window_hook = NULL; /* XXX vestigial? */ |
diff --git a/src/w32term.c b/src/w32term.c index 803ab551f8b..82a003560a9 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -224,8 +224,6 @@ void x_wm_set_icon_pixmap (struct frame *, int); | |||
| 224 | static void w32_initialize (void); | 224 | static void w32_initialize (void); |
| 225 | static void x_update_end (struct frame *); | 225 | static void x_update_end (struct frame *); |
| 226 | static void w32_frame_up_to_date (struct frame *); | 226 | static void w32_frame_up_to_date (struct frame *); |
| 227 | static void w32_set_terminal_modes (struct terminal *); | ||
| 228 | static void w32_reset_terminal_modes (struct terminal *); | ||
| 229 | static void x_clear_frame (struct frame *); | 227 | static void x_clear_frame (struct frame *); |
| 230 | static void frame_highlight (struct frame *); | 228 | static void frame_highlight (struct frame *); |
| 231 | static void frame_unhighlight (struct frame *); | 229 | static void frame_unhighlight (struct frame *); |
| @@ -934,28 +932,6 @@ w32_destroy_fringe_bitmap (int which) | |||
| 934 | fringe_bmp[which] = 0; | 932 | fringe_bmp[which] = 0; |
| 935 | } | 933 | } |
| 936 | 934 | ||
| 937 | |||
| 938 | |||
| 939 | /* This is called when starting Emacs and when restarting after | ||
| 940 | suspend. When starting Emacs, no window is mapped. And nothing | ||
| 941 | must be done to Emacs's own window if it is suspended (though that | ||
| 942 | rarely happens). */ | ||
| 943 | |||
| 944 | static void | ||
| 945 | w32_set_terminal_modes (struct terminal *term) | ||
| 946 | { | ||
| 947 | } | ||
| 948 | |||
| 949 | /* This is called when exiting or suspending Emacs. Exiting will make | ||
| 950 | the W32 windows go away, and suspending requires no action. */ | ||
| 951 | |||
| 952 | static void | ||
| 953 | w32_reset_terminal_modes (struct terminal *term) | ||
| 954 | { | ||
| 955 | } | ||
| 956 | |||
| 957 | |||
| 958 | |||
| 959 | /*********************************************************************** | 935 | /*********************************************************************** |
| 960 | Display Iterator | 936 | Display Iterator |
| 961 | ***********************************************************************/ | 937 | ***********************************************************************/ |
| @@ -6354,8 +6330,8 @@ w32_create_terminal (struct w32_display_info *dpyinfo) | |||
| 6354 | terminal->ins_del_lines_hook = x_ins_del_lines; | 6330 | terminal->ins_del_lines_hook = x_ins_del_lines; |
| 6355 | terminal->delete_glyphs_hook = x_delete_glyphs; | 6331 | terminal->delete_glyphs_hook = x_delete_glyphs; |
| 6356 | terminal->ring_bell_hook = w32_ring_bell; | 6332 | terminal->ring_bell_hook = w32_ring_bell; |
| 6357 | terminal->reset_terminal_modes_hook = w32_reset_terminal_modes; | 6333 | terminal->reset_terminal_modes_hook = NULL; |
| 6358 | terminal->set_terminal_modes_hook = w32_set_terminal_modes; | 6334 | terminal->set_terminal_modes_hook = NULL; |
| 6359 | terminal->update_begin_hook = x_update_begin; | 6335 | terminal->update_begin_hook = x_update_begin; |
| 6360 | terminal->update_end_hook = x_update_end; | 6336 | terminal->update_end_hook = x_update_end; |
| 6361 | terminal->set_terminal_window_hook = w32_set_terminal_window; | 6337 | terminal->set_terminal_window_hook = w32_set_terminal_window; |
diff --git a/src/xterm.c b/src/xterm.c index 2ece8c40d2d..c6c181a4371 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -297,8 +297,6 @@ static struct terminal *x_create_terminal (struct x_display_info *); | |||
| 297 | void x_delete_terminal (struct terminal *); | 297 | void x_delete_terminal (struct terminal *); |
| 298 | static void x_update_end (struct frame *); | 298 | static void x_update_end (struct frame *); |
| 299 | static void XTframe_up_to_date (struct frame *); | 299 | static void XTframe_up_to_date (struct frame *); |
| 300 | static void XTset_terminal_modes (struct terminal *); | ||
| 301 | static void XTreset_terminal_modes (struct terminal *); | ||
| 302 | static void x_clear_frame (struct frame *); | 300 | static void x_clear_frame (struct frame *); |
| 303 | static _Noreturn void x_ins_del_lines (struct frame *, int, int); | 301 | static _Noreturn void x_ins_del_lines (struct frame *, int, int); |
| 304 | static void frame_highlight (struct frame *); | 302 | static void frame_highlight (struct frame *); |
| @@ -833,27 +831,6 @@ x_draw_fringe_bitmap (struct window *w, struct glyph_row *row, struct draw_fring | |||
| 833 | XSetClipMask (display, gc, None); | 831 | XSetClipMask (display, gc, None); |
| 834 | } | 832 | } |
| 835 | 833 | ||
| 836 | |||
| 837 | |||
| 838 | /* This is called when starting Emacs and when restarting after | ||
| 839 | suspend. When starting Emacs, no X window is mapped. And nothing | ||
| 840 | must be done to Emacs's own window if it is suspended (though that | ||
| 841 | rarely happens). */ | ||
| 842 | |||
| 843 | static void | ||
| 844 | XTset_terminal_modes (struct terminal *terminal) | ||
| 845 | { | ||
| 846 | } | ||
| 847 | |||
| 848 | /* This is called when exiting or suspending Emacs. Exiting will make | ||
| 849 | the X-windows go away, and suspending requires no action. */ | ||
| 850 | |||
| 851 | static void | ||
| 852 | XTreset_terminal_modes (struct terminal *terminal) | ||
| 853 | { | ||
| 854 | } | ||
| 855 | |||
| 856 | |||
| 857 | /*********************************************************************** | 834 | /*********************************************************************** |
| 858 | Glyph display | 835 | Glyph display |
| 859 | ***********************************************************************/ | 836 | ***********************************************************************/ |
| @@ -10546,8 +10523,8 @@ x_create_terminal (struct x_display_info *dpyinfo) | |||
| 10546 | terminal->delete_glyphs_hook = x_delete_glyphs; | 10523 | terminal->delete_glyphs_hook = x_delete_glyphs; |
| 10547 | terminal->ring_bell_hook = XTring_bell; | 10524 | terminal->ring_bell_hook = XTring_bell; |
| 10548 | terminal->toggle_invisible_pointer_hook = XTtoggle_invisible_pointer; | 10525 | terminal->toggle_invisible_pointer_hook = XTtoggle_invisible_pointer; |
| 10549 | terminal->reset_terminal_modes_hook = XTreset_terminal_modes; | 10526 | terminal->reset_terminal_modes_hook = NULL; |
| 10550 | terminal->set_terminal_modes_hook = XTset_terminal_modes; | 10527 | terminal->set_terminal_modes_hook = NULL; |
| 10551 | terminal->update_begin_hook = x_update_begin; | 10528 | terminal->update_begin_hook = x_update_begin; |
| 10552 | terminal->update_end_hook = x_update_end; | 10529 | terminal->update_end_hook = x_update_end; |
| 10553 | terminal->set_terminal_window_hook = XTset_terminal_window; | 10530 | terminal->set_terminal_window_hook = XTset_terminal_window; |