From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Failed assertion on make-frame-on-display Date: Mon, 20 Nov 2006 15:16:43 -0500 Message-ID: <87vel9ub4k.fsf@cyd.mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164054618 31757 80.91.229.2 (20 Nov 2006 20:30:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2006 20:30:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 20 21:30:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmFmI-0002IJ-NT for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 21:30:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmFmI-0000mR-5y for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 15:30:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmFlX-0000EX-Ud for emacs-devel@gnu.org; Mon, 20 Nov 2006 15:29:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmFlR-0008VU-7N for emacs-devel@gnu.org; Mon, 20 Nov 2006 15:29:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmFlQ-0008Uq-SB for emacs-devel@gnu.org; Mon, 20 Nov 2006 15:29:12 -0500 Original-Received: from [18.19.1.138] (helo=cyd.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmFZ7-0006Oq-Cn; Mon, 20 Nov 2006 15:16:29 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 0B78F4E44D; Mon, 20 Nov 2006 15:16:44 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sun\, 19 Nov 2006 07\:48\:40 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62575 Archived-At: Richard Stallman writes: > I can trigger the following assertion by running > > emacs -Q -fn "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-1" > > and M-x make-frame-on-display to a display that doesn't have that font > installed. When compiled without assertions, emacs dies when > dereferencing the NULL returned by choose_face_font. I can't test this, but probably the way to fix this is to make it an error to try to make a frame on a display that doesn't support the default font; i.e., x-create-frame should try to load the default font on the new display if it is not already loaded, and do an Ferror if the load fails. WDYT?