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 10:36:56 -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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308153370 22648 80.91.229.12 (15 Jun 2011 15:56:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 15:56:10 +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 Wed Jun 15 17:56:06 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 1QWsRq-0004E8-PR for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 17:56:06 +0200 Original-Received: from localhost ([::1]:33477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWsRp-0000ic-E2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 11:56:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWrEQ-0005Bh-5r for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 10:38:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWrEJ-0005qJ-Q0 for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 10:38:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWrEJ-0005qC-Hx for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 10:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QWrEI-0005eF-Vl; Wed, 15 Jun 2011 10:38:03 -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 14:38: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.130814862521577 (code B ref 8857); Wed, 15 Jun 2011 14:38:02 +0000 Original-Received: (at 8857) by debbugs.gnu.org; 15 Jun 2011 14:37:05 +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 1QWrDM-0005bq-NT for submit@debbugs.gnu.org; Wed, 15 Jun 2011 10:37:05 -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 1QWrDK-0005aj-Lq for 8857@debbugs.gnu.org; Wed, 15 Jun 2011 10:37:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EACnD+E1FpY1I/2dsb2JhbABSplB4iHO+eIYmBJ0/hBs X-IronPort-AV: E=Sophos;i="4.65,370,1304308800"; d="scan'208";a="116352561" Original-Received: from 69-165-141-72.dsl.teksavvy.com (HELO ceviche.home) ([69.165.141.72]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Jun 2011 10:36:57 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C86E5660F1; Wed, 15 Jun 2011 11:36:56 -0300 (ART) In-Reply-To: <9ypqmfy2lo.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 15 Jun 2011 03:29:23 -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 10:38: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:47184 Archived-At: > In addition I still think it might be worth explicitly making > display-buffer a no-op in batch mode, unless someone can think of > something it can actually do in such cases. I think this could only be "batch mode" and "server mode" are *very* closely related. So I'd stay away from any attempt to special case "batch mode". At best, you could try and check the currently selected terminal and do something special when that terminal is the "initial" terminal (the one bound to stdout/stdin), but I'd rather not obscure the code to "optimize" this case. Stefan