GNU bug report logs - #8857
display-buffer attempt to pop-up frame in batch mode causes "Unknown terminal type" error

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: David Engster <deng <at> randomsample.de>
Cc: Glenn Morris <rgm <at> gnu.org>, 8857 <at> debbugs.gnu.org
Subject: bug#8857: display-buffer attempt to pop-up frame in batch mode causes	"Unknown terminal type" error
Date: Wed, 15 Jun 2011 21:32:59 +0200
> I don't know if this is what you're looking for, but when I run this:

More or less so, thanks.  Putting the debug-on-entry on
`display-buffer-pop-up-frame' would have been more indicative.

> --> emacs --batch -Q --eval "(debug-on-entry 'display-buffer-pop-up-window)" foo bar baz
>
> I get this:
>
> Debugger entered--entering a function:
>   display-buffer-pop-up-window(#<buffer bar> ((largest) (lru)) ((pop-up-frame) (reuse-window ...
                                                                  ^^^^^^^^^^^^^^

`display-buffer-pop-up-window' likely fails here to produce a window and
next `display-buffer' tries to pop up a new frame.

> * display-buffer(#<buffer bar> other-window nil)
>   pop-to-buffer(#<buffer bar> other-window nil)
>   switch-to-buffer-other-window(#<buffer bar>)
>   find-file-other-window("/home/void/bar")
>   command-line-1(("--eval" "(debug-on-entry 'display-buffer-pop-up-window)" "foo" "bar" "baz"))
>   command-line()
>   normal-top-level()

The problem is that `switch-to-buffer-other-window' has to use "another"
window.  If it can't pop up a window on the selected frame it tries to
pop up a new frame :-( As Glenn remarked - you can get the same problem
by setting `pop-up-frames' to t.  What shall I do?

martin




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.