mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
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)
This commit is contained in:
parent
65e4ebdfb6
commit
e503e9d35f
@ -622,6 +622,7 @@ init_initial_terminal (void)
|
||||
initial_terminal->kboard = initial_kboard;
|
||||
initial_terminal->delete_terminal_hook = &delete_initial_terminal;
|
||||
initial_terminal->delete_frame_hook = &initial_free_frame_resources;
|
||||
initial_terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */
|
||||
/* Other hooks are NULL by default. */
|
||||
|
||||
return initial_terminal;
|
||||
|
Loading…
Reference in New Issue
Block a user