changeset 79274:619eb3ab45f1

(Fformat_mode_line): Do nothing when noninteractive.
author Jason Rumney <jasonr@gnu.org>
date Tue, 30 Oct 2007 22:48:26 +0000
parents d1568bb98837
children f037f491fbf0
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Oct 30 15:22:25 2007 +0000
+++ b/src/xdisp.c	Tue Oct 30 22:48:26 2007 +0000
@@ -17368,7 +17368,9 @@
     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)