From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#8857: display-buffer attempt to pop-up frame in batch mode causes "Unknown terminal type" error Date: Thu, 16 Jun 2011 17:08:21 +0200 Message-ID: <4DFA1C65.2070306@gmx.at> References: <4DF726E0.6020205@gmx.at> <4DF79707.7000707@gmx.at> <4DF7A0D0.2030707@gmx.at> <4DF7B1D2.3010304@gmx.at> <9ypqmfy2lo.fsf@fencepost.gnu.org> <4DF866F7.3070006@gmx.at> <87oc1zkp0n.fsf@engster.org> <4DF9CBA1.1090307@gmx.at> <4DF9FE9D.3080609@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308240800 25583 80.91.229.12 (16 Jun 2011 16:13:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2011 16:13:20 +0000 (UTC) Cc: 8857@debbugs.gnu.org To: David Engster Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 16 18:13:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXFBz-0006QA-8L for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2011 18:13:15 +0200 Original-Received: from localhost ([::1]:36971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFBx-0004uH-IB for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2011 12:13:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXEBw-00051A-Oy for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2011 11:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXEBq-0004ES-VO for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2011 11:09:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXEBq-0004EI-Nx for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2011 11:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QXEBq-0005wC-DM; Thu, 16 Jun 2011 11:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jun 2011 15:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8857-submit@debbugs.gnu.org id=B8857.130823691222778 (code B ref 8857); Thu, 16 Jun 2011 15:09:02 +0000 Original-Received: (at 8857) by debbugs.gnu.org; 16 Jun 2011 15:08:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXEBM-0005vL-8M for submit@debbugs.gnu.org; Thu, 16 Jun 2011 11:08:32 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QXEBJ-0005v7-Re for 8857@debbugs.gnu.org; Thu, 16 Jun 2011 11:08:31 -0400 Original-Received: (qmail invoked by alias); 16 Jun 2011 15:08:23 -0000 Original-Received: from 62-47-62-1.adsl.highway.telekom.at (EHLO [62.47.62.1]) [62.47.62.1] by mail.gmx.net (mp071) with SMTP; 16 Jun 2011 17:08:23 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18A1P5ssuAA1MrUaWngZf2ZetoOE4k+7HcojaWSUM NMDT1pYHGEKJER User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 16 Jun 2011 11:09:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47243 Archived-At: > calendar/diary-lib.el: > > (let* ((pop-up-frames (or pop-up-frames > (window-dedicated-p (selected-window)))) > > mail/rmail.el: > > (and pop-up-frames (one-window-p)) > > progmodes/inf-lisp.el: > > (let ((pop-up-frames > ;; Be willing to use another frame > ;; that already has the window in it. > (or pop-up-frames > (get-buffer-window inferior-lisp-buffer t)))) > > vc/pcvs-util.el: > > (let ((pop-up-windows (or pop-up-windows pop-up-frames)) > > ... just to mention a few. I replaced most of these in my window-pub branch which, however, doesn't care about 'unset value yet. Obviously, all of these don't DTRT in Emacs 23 when a user has set `pop-up-frames' to 'graphic-only and is on a non-graphic system. > OK, I think I understand the motivation behind 'unset now. 'unset was a quick fix to make old code work with the new `display-buffer'. There might be some yet unknown quirks in it. Maybe I even don't need it. > However, this > effectively means that there really is no default value for > pop-up-frames, ... well it's 'unset ... > and every application can decide how they will deal with > that. The snippets above will see it as non-nil and will now create > frames. Yes. Just as they wrongly handled 'graphic-only in Emacs 23. > Right, the current code doesn't care about 'graphic-only, but neither > does the old code care about 'unset. This can be changed, of course... :-) This must be changed, of course :-) > I actually don't feel that strongly about it. It just found it > confusing, but I think I understand it better now. I have set this > option to nil anyway. :-) Me too. That's why I'm not very familiar with the ensuing problems. martin