From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster 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 12:04:15 +0200 Message-ID: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308218732 12381 80.91.229.12 (16 Jun 2011 10:05:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2011 10:05:32 +0000 (UTC) Cc: 8857@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 16 12:05:28 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 1QX9S3-0002pD-R8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2011 12:05:27 +0200 Original-Received: from localhost ([::1]:36957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX9S2-00067R-Mz for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2011 06:05:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX9Rj-00064L-Ks for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2011 06:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QX9Re-0001MI-NH for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2011 06:05:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX9Re-0001MB-EV for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2011 06:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QX9Rd-0006sr-NL; Thu, 16 Jun 2011 06:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster 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 10:05:01 +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.130821867126425 (code B ref 8857); Thu, 16 Jun 2011 10:05:01 +0000 Original-Received: (at 8857) by debbugs.gnu.org; 16 Jun 2011 10:04:31 +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 1QX9R9-0006sA-4p for submit@debbugs.gnu.org; Thu, 16 Jun 2011 06:04:31 -0400 Original-Received: from v3-1008.vxen.de ([79.140.41.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QX9R5-0006rx-W0 for 8857@debbugs.gnu.org; Thu, 16 Jun 2011 06:04:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=CGZQuBVUGWX2vU6VcBOkeVzhPQCN5F1djw3Mh39O4iY=; b=j29AkuR5IjI671qdtHjr2aw4A6db8lsNg1V5eYcyxbiaiOXltrkLAyVtoPPP2SF1cPOVVmm/UdVJJv+5v/3EYNBQjjzMjGhAg/GlyazNG5LKM+L5e6V99TXNZyReC8qv; Original-Received: from ibookg4-c2.pc.gwdg.de ([134.76.4.219]) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QX9Qy-0004pC-UA; Thu, 16 Jun 2011 12:04:21 +0200 In-Reply-To: <4DF9CBA1.1090307@gmx.at> (martin rudalics's message of "Thu, 16 Jun 2011 11:23:45 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 16 Jun 2011 06:05:01 -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:47230 Archived-At: martin rudalics writes: >> Is this supposed to also fix the problem for batch mode? Because I still >> see this error with revno. 104589: >> >> --> emacs --batch foo bar baz >> Unknown terminal type >> >> Actually, this currently breaks the CEDET build, because it uses a hack >> to provide arguments for functions called with the "-f" switch... > > My earlier fix wasn't rigid enough. Please try again. Works for me. Thanks! BTW, but I think related to this, I don't really understand the new default for pop-up-frames. The doc-string says: "If this is the symbol unset, the option was not set and is ignored." Sorry, but I think this is a bit of a cop-out. You can't really ignore a boolean option - you either pop up a new frame or you don't; it all just depends on how you handle "unset", and this introduces ambiguity in the code. A quick grep shows me that pop-up-frames is either tested with (if (memq pop-up-frames '(nil unset)) ... which means 'unset is actually handled as "not set", or it is simply tested with (if pop-up-frames ... which means 'unset is handled as "set". I would vote for setting the default to 'graphic-only. (Maybe this is the wrong place to discuss this - please let me know if I should file another bug-report or bring this to emacs-devel). -David