Subject: display-buffer attempt to pop-up frame in batch mode causes "Unknown terminal type" error

From: Glenn Morris <[email-masked]>
Date: Mon, 13 Jun 2011 18:21:30 -0400

Package: emacs

With the current trunk:

./src/emacs -Q -batch README INSTALL Makefile
Loading vc-bzr...
Unknown terminal type

(exits with status /= 0)

OK, this is not a very sensible example, but it illustrates the point.
It's caused by display-buffer trying to pop-up a frame in batch-mode and
is very recent.

Emacs 23 does not have this problem by default, but the following shows
the same issue:

emacs-23.3 -Q -batch --eval '(setq pop-up-frames t)' README INSTALL Makefile