1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00

(Fformat_mode_line): Do nothing when noninteractive.

This commit is contained in:
Jason Rumney 2007-10-30 22:49:26 +00:00
parent 5553835fc4
commit 63eb134d1e
2 changed files with 7 additions and 1 deletions

View 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):

View 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)