GNU bug report logs -
#8857
display-buffer attempt to pop-up frame in batch mode causes "Unknown terminal type" error
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Mon, 13 Jun 2011 22:22:01 UTC
Severity: normal
Done: David Engster <deng <at> randomsample.de>
Bug is archived. No further changes may be made.
Full log
Message #12 received at 8857 <at> debbugs.gnu.org (full text, mbox):
martin rudalics wrote:
>> 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.
>
> Can you tell me where and why `display-buffer' is called?
I don't know. From `find-file' I guess. I noticed because of this:
http://lists.gnu.org/archive/html/emacs-buildstatus/2011-06/msg00004.html
(which was due to custom-make-dependencies leaving files on the
command-line so they were processed as normal file arguments)
>> PS I forgot to say that I think display-buffer should not try to pop-up
>> frames (or do anything at all?) in batch-mode. Or if it must give an
>> error it should try to give a more helpful one than "Unknown terminal
>> type".
>
> In particular not with emacs -Q. But I have no experience debugging
> emacs with the batch option. So before delving into this maybe you
> could give me more information?
Maybe display-buffer should just be a no-op in batch-mode, since it's
impossible (?) to display anything then (except via the echo area).
(defun display-buffer () ""
(unless noninteractive
...))
This bug report was last modified 14 years and 48 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.