]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fformat_mode_line): Do nothing when noninteractive.
authorJason Rumney <jasonr@gnu.org>
Tue, 30 Oct 2007 22:49:26 +0000 (22:49 +0000)
committerJason Rumney <jasonr@gnu.org>
Tue, 30 Oct 2007 22:49:26 +0000 (22:49 +0000)
src/ChangeLog
src/xdisp.c

index faa02a11786d208acae7517455d6fcc9f555408a..8ee05c00808155d5d9453e81d70dac3af1a9bb6a 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-30  Jason Rumney  <jasonr@gnu.org>
+
+       * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
+
 2007-10-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
        * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
index 92c0af8c5ed1bf495d798e2118af6d65f6fd6c81..9e3a3bade1f55a2b906845a49b2f5c594094d1b8 100644 (file)
@@ -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)