summaryrefslogtreecommitdiff
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2007-10-30 22:49:26 +0000
committerJason Rumney <jasonr@gnu.org>2007-10-30 22:49:26 +0000
commit63eb134d1eeee0d69eff1fa38005876335f28e1e (patch)
treeaec0cf6904d3db7929b6c7d45601d9fa74abeeb1 /src/xdisp.c
parent5553835fc4d71fb927e8c37cb76e27334457e1e2 (diff)
(Fformat_mode_line): Do nothing when noninteractive.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 92c0af8c5ed..9e3a3bade1f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -17368,7 +17368,9 @@ are the selected window and the window's buffer). */)
buffer = w->buffer;
CHECK_BUFFER (buffer);
- if (NILP (format))
+ /* Make formatting the modeline a non-op when noninteractive, otherwise
+ there will be problems later caused by a partially initialized frame. */
+ if (NILP (format) || noninteractive)
return build_string ("");
if (no_props)