diff options
| author | Alexander Gramiak | 2019-04-13 08:59:07 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-04-26 16:55:39 -0600 |
| commit | 41e20ee4bc01576d23fb8fd4f875385ce57eb36a (patch) | |
| tree | c1432a0324447423c5cfbdea70a83fd09dd79991 /src/term.c | |
| parent | a411517faf624657aa58979f5463115115093309 (diff) | |
| download | emacs-41e20ee4bc01576d23fb8fd4f875385ce57eb36a.tar.gz emacs-41e20ee4bc01576d23fb8fd4f875385ce57eb36a.zip | |
Add terminal hook defined_color_hook
* src/termhooks.h (defined_color_hook): New terminal hook.
* src/xterm.c:
* src/nsterm.m:
* src/term.c:
* src/w32term.c: Set defined_color_hook.
* src/xfaces.c: Use defined_color_hook.
(defined_color): Remove.
* src/image.c: Remove redefinitions of x_defined_color, and use
defined_color_hook.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 2de0a0e6649..6a8fc2ee932 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3838,6 +3838,7 @@ clear_tty_hooks (struct terminal *terminal) | |||
| 3838 | terminal->update_begin_hook = 0; | 3838 | terminal->update_begin_hook = 0; |
| 3839 | terminal->update_end_hook = 0; | 3839 | terminal->update_end_hook = 0; |
| 3840 | terminal->set_terminal_window_hook = 0; | 3840 | terminal->set_terminal_window_hook = 0; |
| 3841 | terminal->defined_color_hook = 0; | ||
| 3841 | terminal->mouse_position_hook = 0; | 3842 | terminal->mouse_position_hook = 0; |
| 3842 | terminal->frame_rehighlight_hook = 0; | 3843 | terminal->frame_rehighlight_hook = 0; |
| 3843 | terminal->frame_raise_lower_hook = 0; | 3844 | terminal->frame_raise_lower_hook = 0; |
| @@ -3881,6 +3882,7 @@ set_tty_hooks (struct terminal *terminal) | |||
| 3881 | terminal->menu_show_hook = &tty_menu_show; | 3882 | terminal->menu_show_hook = &tty_menu_show; |
| 3882 | #endif | 3883 | #endif |
| 3883 | terminal->set_terminal_window_hook = &tty_set_terminal_window; | 3884 | terminal->set_terminal_window_hook = &tty_set_terminal_window; |
| 3885 | terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */ | ||
| 3884 | terminal->read_socket_hook = &tty_read_avail_input; /* keyboard.c */ | 3886 | terminal->read_socket_hook = &tty_read_avail_input; /* keyboard.c */ |
| 3885 | terminal->delete_frame_hook = &tty_free_frame_resources; | 3887 | terminal->delete_frame_hook = &tty_free_frame_resources; |
| 3886 | terminal->delete_terminal_hook = &delete_tty; | 3888 | terminal->delete_terminal_hook = &delete_tty; |