# HG changeset patch # User Jason Rumney # Date 1193784506 0 # Node ID 619eb3ab45f1dc8e2ddd4bc06b85f60e58993c8a # Parent d1568bb98837b64517757ac09be03a9035f813e1 (Fformat_mode_line): Do nothing when noninteractive. diff -r d1568bb98837 -r 619eb3ab45f1 src/xdisp.c --- 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)