From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8857: display-buffer attempt to pop-up frame in batch mode causes "Unknown terminal type" error Date: Wed, 15 Jun 2011 17:02:50 -0400 Message-ID: References: <4DF726E0.6020205@gmx.at> <4DF79707.7000707@gmx.at> <4DF7A0D0.2030707@gmx.at> <4DF7B1D2.3010304@gmx.at> <9ypqmfy2lo.fsf@fencepost.gnu.org> <3y39jaq3ww.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308175536 31195 80.91.229.12 (15 Jun 2011 22:05:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 22:05:36 +0000 (UTC) Cc: 8857@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 16 00:05:31 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 1QWyDI-0003Ae-81 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2011 00:05:28 +0200 Original-Received: from localhost ([::1]:38633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyDH-0003hS-B2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 18:05:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWxEv-0003qm-TT for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 17:03:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWxEt-0005LR-VA for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 17:03:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWxEt-0005LE-N3 for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 17:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QWxEs-0005wG-FG; Wed, 15 Jun 2011 17:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jun 2011 21:03: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.130817177922819 (code B ref 8857); Wed, 15 Jun 2011 21:03:02 +0000 Original-Received: (at 8857) by debbugs.gnu.org; 15 Jun 2011 21:02:59 +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 1QWxEo-0005vz-LH for submit@debbugs.gnu.org; Wed, 15 Jun 2011 17:02:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWxEm-0005vo-G2 for 8857@debbugs.gnu.org; Wed, 15 Jun 2011 17:02:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EADYd+U1MCozA/2dsb2JhbABSpll4iHO/OYYmBJ0/hBs X-IronPort-AV: E=Sophos;i="4.65,371,1304308800"; d="scan'208";a="116407318" Original-Received: from 76-10-140-192.dsl.teksavvy.com (HELO pastel.home) ([76.10.140.192]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Jun 2011 17:02:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6683E59010; Wed, 15 Jun 2011 17:02:50 -0400 (EDT) In-Reply-To: <3y39jaq3ww.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 15 Jun 2011 15:40:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Jun 2011 17:03: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:47213 Archived-At: >> "batch mode" and "server mode" are *very* closely related. So I'd stay >> away from any attempt to special case "batch mode". > FWIW, `noninteractive' is nil in "server mode" (ie --daemon) but t in > "batch mode", so the two cases are easily distinguished. > Since emacs.c has: > if (!noninteractive) > init_display (); /* Determine terminal type. Calls init_sys_modes. */ > I've gone back to thinking that display-buffer can do nothing useful in > batch mode. It might fix it for batch mode, but you may get the same problem in "server mode before opening any display or tty". That's what I mean by the two being closely related. I.e. we need to make it work on the dummy initial terminal. Stefan