diff options
| author | Alex Gramiak | 2019-05-31 14:30:31 -0600 |
|---|---|---|
| committer | Eli Zaretskii | 2019-08-10 11:45:41 +0300 |
| commit | e503e9d35f80ff064c9f0ef24e514b00f5e214f9 (patch) | |
| tree | 3791070147421f4f866144ef295636fa92cb966b | |
| parent | 65e4ebdfb6e78abac68ba9b9422fa6cd77028c16 (diff) | |
| download | emacs-e503e9d35f80ff064c9f0ef24e514b00f5e214f9.tar.gz emacs-e503e9d35f80ff064c9f0ef24e514b00f5e214f9.zip | |
Set up defined_color_hook for the initial frame
* src/terminal.c (init_initial_terminal): Set up the
defined_color_hook. This avoids crashes when running
in batch mode with code that manipulates colors.
(Bug#36019)
| -rw-r--r-- | src/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index bb02d586615..dfcd5b0a836 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -622,6 +622,7 @@ init_initial_terminal (void) | |||
| 622 | initial_terminal->kboard = initial_kboard; | 622 | initial_terminal->kboard = initial_kboard; |
| 623 | initial_terminal->delete_terminal_hook = &delete_initial_terminal; | 623 | initial_terminal->delete_terminal_hook = &delete_initial_terminal; |
| 624 | initial_terminal->delete_frame_hook = &initial_free_frame_resources; | 624 | initial_terminal->delete_frame_hook = &initial_free_frame_resources; |
| 625 | initial_terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */ | ||
| 625 | /* Other hooks are NULL by default. */ | 626 | /* Other hooks are NULL by default. */ |
| 626 | 627 | ||
| 627 | return initial_terminal; | 628 | return initial_terminal; |