From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#3194: 23.0.93; Error opening X frame when it's named Date: Wed, 06 May 2009 20:09:01 -0400 Message-ID: <87d4alhizm.fsf@cyd.mit.edu> References: <87my9ufc6s.fsf@cyd.mit.edu> <873abmf7g5.fsf@mithrandir.homeunix.net> Reply-To: Chong Yidong , 3194@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241656344 21537 80.91.229.12 (7 May 2009 00:32:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 00:32:24 +0000 (UTC) Cc: 3194@emacsbugs.donarmstrong.com, rfrancoise@debian.org To: Jose Antonio Ortega Ruiz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 02:32:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1rX2-00065t-VV for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 02:32:13 +0200 Original-Received: from localhost ([127.0.0.1]:37227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1rX2-00007y-4M for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 May 2009 20:32:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1rWy-00007M-EH for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 20:32:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1rWt-0008T6-74 for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 20:32:07 -0400 Original-Received: from [199.232.76.173] (port=33837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1rWt-0008T3-1s for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 20:32:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56783) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1rWs-0004l4-Im for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 20:32:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n470VrLS026831; Wed, 6 May 2009 17:31:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n470F4LE021610; Wed, 6 May 2009 17:15:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 May 2009 00:15:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3194 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3194-submit@emacsbugs.donarmstrong.com id=B3194.124165493720050 (code B ref 3194); Thu, 07 May 2009 00:15:04 +0000 Original-Received: (at 3194) by emacsbugs.donarmstrong.com; 7 May 2009 00:08:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4708qui020042 for <3194@emacsbugs.donarmstrong.com>; Wed, 6 May 2009 17:08:53 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 638E957E25C; Wed, 6 May 2009 20:09:01 -0400 (EDT) In-Reply-To: <873abmf7g5.fsf@mithrandir.homeunix.net> (Jose Antonio Ortega Ruiz's message of "Sun, 03 May 2009 18:59:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 06 May 2009 20:32:07 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27756 Archived-At: Jose Antonio Ortega Ruiz writes: > The *first* time I try, it works; but subsequent re-evaluations (after > closing the initial frame), fail with the error i reported. Could this > be your case too? OK, I see the problem. This is a loophole in the frame creating logic---we usually rely on x-create-frame to open the X connection if it's not already open, but for named faces we need the X resources associated with the face name. So x-handle-named-frame-geometry really ought to open the X connection. The reason this does not happen for the first X frame is that we detect that specially, and open the X connection for initializing the various graphical settings. I don't want to make any changes to the logic at this stage of the pretest, so I've installed a temporary workaround, which ignores the error in x-handle-named-frame-geometry. This has one drawback: any special X resources you associate with that frame name are not recognized. I'll keep this bug open, and look into a more comprehensive solution after the release.