diff options
| author | Eli Zaretskii | 2015-05-14 18:48:38 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-05-14 18:48:38 +0300 |
| commit | f85318cdcdc2f7cf7729117fcc841407776c7e4b (patch) | |
| tree | d997503c4d95a2a8e865542b89eb3f79dfa7ff9b /src/window.c | |
| parent | 17bbb94dca3a8e6af53912a3a8180f9c4c4d9592 (diff) | |
| download | emacs-f85318cdcdc2f7cf7729117fcc841407776c7e4b.tar.gz emacs-f85318cdcdc2f7cf7729117fcc841407776c7e4b.zip | |
Fix daemon crashes when linum-mode is turned on early on
* src/window.c (Fwindow_end): Don't try calling display engine
functions on initial-frame frame. (Bug#20565)
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 0fcf82d43f4..b8281661b4d 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1748,7 +1748,11 @@ if it isn't already recorded. */) | |||
| 1748 | || b->clip_changed | 1748 | || b->clip_changed |
| 1749 | || b->prevent_redisplay_optimizations_p | 1749 | || b->prevent_redisplay_optimizations_p |
| 1750 | || window_outdated (w)) | 1750 | || window_outdated (w)) |
| 1751 | && !noninteractive) | 1751 | /* Don't call display routines if we didn't yet create any real |
| 1752 | frames, because the glyph matrices are not yet allocated in | ||
| 1753 | that case. This could happen in some code that runs in the | ||
| 1754 | daemon during initialization (e.g., see bug#20565). */ | ||
| 1755 | && !(noninteractive || FRAME_INITIAL_P (WINDOW_XFRAME (w)))) | ||
| 1752 | { | 1756 | { |
| 1753 | struct text_pos startp; | 1757 | struct text_pos startp; |
| 1754 | struct it it; | 1758 | struct it it; |