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:19:52 +0800 Message-ID: <496813D8.2090906@gnu.org> References: 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 1231559031 12050 80.91.229.12 (10 Jan 2009 03:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2009 03:43:51 +0000 (UTC) To: Juanma Barranquero , 1836@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 04:45:02 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 1LLUmS-0005EY-To for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2009 04:45:01 +0100 Original-Received: from localhost ([127.0.0.1]:53770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLUlD-0006mk-1r for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jan 2009 22:43:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLUl0-0006ix-4Q for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 22:43:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLUkx-0006ib-VR for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 22:43:29 -0500 Original-Received: from [199.232.76.173] (port=55343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLUkx-0006iN-LW for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 22:43:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34192) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LLUkw-00074z-Tc for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2009 22:43: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 n0A3hOe0007150; Fri, 9 Jan 2009 19:43:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0A3U441003524; Fri, 9 Jan 2009 19:30:04 -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 03:30:04 +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.12315576311953 (code B ref 1836); Sat, 10 Jan 2009 03:30:04 +0000 Original-Received: (at 1836) by emacsbugs.donarmstrong.com; 10 Jan 2009 03:20: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.188]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0A3KNcu001941 for <1836@emacsbugs.donarmstrong.com>; Fri, 9 Jan 2009 19:20:25 -0800 Original-Received: by ti-out-0910.google.com with SMTP id b6so6929704tic.1 for <1836@emacsbugs.donarmstrong.com>; Fri, 09 Jan 2009 19:20:23 -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:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Sk2kwHy7GPAnCfHFpG6MSl0o84JEos5hUqNpd5igWck=; b=VjIYkwaWl36f1Rk337s3sijMwlwez2sIkBwFhJAI4b3bED0ZZuSqiLmOhR3C0gYCsT VMrqsXoDsPlkplSJmT5qk5Wvv66lMM7egSCrgi+m9A0I/6wUxXiuEIDFx3Cnedpu5yKm U2+B85tS5zyi9vBCRyjdlw6FK6q+xaC0GC9AQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=T6DsnbHlnBdbSnCwH+Pzld3I+HaKjz2VWaM/t6NG4AhsUUQ0tTZlPcQe5JEmza8uID 2NVJR3biB2i+GVupyEKFPAcGjdTQTIJTuD55FufoF9erLgKd52nCp0qIrY/Ko8CJKp1v kDfdkT8Trt/kVMnwEkrYEH/UBV3x6ldfp5E80= Original-Received: by 10.110.53.14 with SMTP id b14mr5258432tia.23.1231557623065; Fri, 09 Jan 2009 19:20:23 -0800 (PST) Original-Received: from ?192.168.249.28? ([124.13.5.7]) by mx.google.com with ESMTPS id 2sm5348468tif.39.2009.01.09.19.20.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Jan 2009 19:20:22 -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 22:43:29 -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:23955 Archived-At: Juanma Barranquero wrote: > Package: emacs > Version: 23.0.60 > X-Debbugs-CC: monnier@iro.umontreal.ca > > [Note: This is *not* bug#1548, which apparently was just fixed by Jason.] > Yes, I haven't yet marked 1548 as fixed, because I came across this, but this one seems to exist on GNU/Linux too so I was going to open a separate bug report about it before closing 1548. What seems to be happening is that an error is thrown during frame creation ("No fonts match `nonexistent'" - the same error that Emacs 22.3 produces), but the top-level lisp loop catches this error and continues executing the main lisp loop without ever having created a frame. My guess was either the multi-tty or daemon changes had introduced this, your investigations seem to point to the latter. > + /* 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. * Do we have a global flag to indicate that Emacs was started in daemon mode that we could use here? How do we decide whether to exit when the last frame is closed for example?