From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#1836: emacs -Q -fn "nonexistent" hangs Date: Sat, 10 Jan 2009 11:53:56 +0800 Message-ID: <49681BD4.8090307@gnu.org> References: <496813D8.2090906@gnu.org> Reply-To: Jason Rumney , 1836@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231560221 14240 80.91.229.12 (10 Jan 2009 04:03:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2009 04:03:41 +0000 (UTC) Cc: 1836@emacsbugs.donarmstrong.com To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 05:04:53 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 1LLV5f-0008Ry-Fs for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2009 05:04:51 +0100 Original-Received: from localhost ([127.0.0.1]:48011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLV4P-0004uQ-D2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jan 2009 23:03:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLV4L-0004uL-PB for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 23:03:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLV4J-0004u7-LD for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 23:03:28 -0500 Original-Received: from [199.232.76.173] (port=56370 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLV4J-0004u4-GR for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 23:03:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55091) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LLV4I-0001Lm-Oo for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 23:03:27 -0500 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 n0A43Ovb012058; Fri, 9 Jan 2009 20:03:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0A403EN010951; Fri, 9 Jan 2009 20:00:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jason Rumney Original-Sender: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 10 Jan 2009 04:00:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1836 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1836-submit@emacsbugs.donarmstrong.com id=B1836.12315596719626 (code B ref 1836); Sat, 10 Jan 2009 04:00:03 +0000 Original-Received: (at 1836) by emacsbugs.donarmstrong.com; 10 Jan 2009 03:54:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0A3sRgO009619 for <1836@emacsbugs.donarmstrong.com>; Fri, 9 Jan 2009 19:54:28 -0800 Original-Received: by ti-out-0910.google.com with SMTP id b6so6939191tic.1 for <1836@emacsbugs.donarmstrong.com>; Fri, 09 Jan 2009 19:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=w7tCzapszVm55byknjvcVMHiNfWaioqirOUJeqbdTIo=; b=j/Oxp8fucSfR26hDl196imX2qco5lA5gSTCXzi0ooTSupODcjqaCDId3KRB3qiEEeT XcFm8WE9TwbpqaSBCFtsbH0GCDJLRKhpLNXN9Jm9GX5Kjk/hqlR0//yTa4u/Sf9XCwx9 KA9FmUBJhib/J1jNo83OoLbm7U2AOByUT0aV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JuDip4KTpjKG/3F3MAvCL618fGQqmo9dRua5zX/JgXa9a6uAFnF+6pCFKWOGSC9HKB XQcJ9nSOwSnmGjbmBEoPG9x5gT20cVCGYLIn6kJtLNi0+dyAiBfIwESPcOiGTDhcaKf9 jKkWMVjO83jnfQvWSfjhjP7/T88VHkCG04HJ8= Original-Received: by 10.110.47.9 with SMTP id u9mr5283260tiu.1.1231559666773; Fri, 09 Jan 2009 19:54:26 -0800 (PST) Original-Received: from ?192.168.249.28? ([124.13.5.7]) by mx.google.com with ESMTPS id y3sm12876956tia.20.2009.01.09.19.54.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Jan 2009 19:54:25 -0800 (PST) User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 09 Jan 2009 23:03:28 -0500 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:23957 Archived-At: The following change seems to fix the problem for me, but I haven't tested daemon mode, since I don't know the circumstances in which there was a problem in that case (surely a non-existent font should still cause an error in daemon mode, since it will prevent frames from being created later). *** keyboard.c.~1.988.~ 2009-01-10 00:01:32.703125000 +0800 --- keyboard.c 2009-01-10 11:50:39.984375000 +0800 *************** *** 1265,1282 **** /* If the window system or terminal frame hasn't been initialized yet, or we're not interactive, write the message to stderr and exit. */ else if (!sf->glyphs_initialized_p ! /* We used to check if "This is the case of the frame dumped with ! Emacs, when we're running under a window system" with ! || (!NILP (Vwindow_system) && !inhibit_window_system ! && FRAME_TERMCAP_P (sf)) ! then the multi-tty code generalized this check to ! || FRAME_INITIAL_P (sf) ! but this leads to undesirable behavior in daemon mode where ! we don't want to exit just because we got an error without ! having a frame (bug#1310). ! So I just removed the check, and rely instead on the `message_*' ! functions properly using FRAME_INITIAL_P. In the worst case ! this should just make Emacs not exit when it should. */ || noninteractive) { print_error_message (data, Qexternal_debugging_output, --- 1265,1271 ---- /* If the window system or terminal frame hasn't been initialized yet, or we're not interactive, write the message to stderr and exit. */ else if (!sf->glyphs_initialized_p ! || (!IS_DAEMON && FRAME_INITIAL_P (sf)) || noninteractive) { print_error_message (data, Qexternal_debugging_output,