diff options
| author | Eli Zaretskii | 2019-01-26 12:07:27 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-01-26 12:07:27 +0200 |
| commit | bf4099b23738f0a481fb6020337039d84506fda4 (patch) | |
| tree | 6cb896cf074bccba54a17acddbfb82cc8e082c0c /src | |
| parent | ce085f1d61a69e9e407a31d60c298f04cbd0c8d2 (diff) | |
| download | emacs-bf4099b23738f0a481fb6020337039d84506fda4.tar.gz emacs-bf4099b23738f0a481fb6020337039d84506fda4.zip | |
Fix face initializations in pdump'ed Emacs
* src/dispnew.c (init_display_interactive): Call init_faces_initial
in the daemon if dumped with pdumper. (Bug#34114)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 88783cd5da7..300f1c2d70a 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6035,10 +6035,21 @@ init_display_interactive (void) | |||
| 6035 | 6035 | ||
| 6036 | /* If running as a daemon, no need to initialize any frames/terminal, | 6036 | /* If running as a daemon, no need to initialize any frames/terminal, |
| 6037 | except on Windows, where we at least want to initialize it. */ | 6037 | except on Windows, where we at least want to initialize it. */ |
| 6038 | #ifndef WINDOWSNT | ||
| 6039 | if (IS_DAEMON) | 6038 | if (IS_DAEMON) |
| 6039 | { | ||
| 6040 | /* Pdump'ed Emacs doesn't record the initial frame from temacs, | ||
| 6041 | so the non-basic faces realized for that frame in temacs | ||
| 6042 | aren't in emacs. This causes errors when users try to | ||
| 6043 | customize those faces in their init file. The call to | ||
| 6044 | init_faces_initial will realize these faces now. (Non-daemon | ||
| 6045 | Emacs does this either near the end of this function or when | ||
| 6046 | the GUI frame is created.) */ | ||
| 6047 | if (dumped_with_pdumper_p ()) | ||
| 6048 | init_faces_initial (); | ||
| 6049 | #ifndef WINDOWSNT | ||
| 6040 | return; | 6050 | return; |
| 6041 | #endif | 6051 | #endif |
| 6052 | } | ||
| 6042 | 6053 | ||
| 6043 | /* If the user wants to use a window system, we shouldn't bother | 6054 | /* If the user wants to use a window system, we shouldn't bother |
| 6044 | initializing the terminal. This is especially important when the | 6055 | initializing the terminal. This is especially important when the |