mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 15:00:45 -08: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue