From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2147: marked as done (Crash when adding (font . nil) to `default-frame-alist') Date: Mon, 02 Feb 2009 15:45:02 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1233589502-12357-0" X-Trace: ger.gmane.org 1233592722 17154 80.91.229.12 (2 Feb 2009 16:38:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 16:38:42 +0000 (UTC) To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 17:39:56 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 1LU1pw-00064e-KV for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2009 17:39:53 +0100 Original-Received: from localhost ([127.0.0.1]:46152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU1od-0001zR-VZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2009 11:38:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LU1Gt-0004Cl-8h for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 11:03:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LU1Gp-000496-Rd for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 11:03:36 -0500 Original-Received: from [199.232.76.173] (port=47667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU1Gp-00047s-8R for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 11:03:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52150) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LU1Gn-0000cX-HG for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2009 11:03:34 -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 n12G3V8O017224; Mon, 2 Feb 2009 08:03:31 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n12Fj3XP012385; Mon, 2 Feb 2009 07:45:03 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2147 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:24831 Archived-At: This is a multi-part message in MIME format... ------------=_1233589502-12357-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Mon, 02 Feb 2009 10:38:00 -0500 with message-id and subject line Re: bug#2147: Default font in Emacs has caused the Emacs bug report #2147, regarding Crash when adding (font . nil) to `default-frame-alist' to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2147: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2147 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1233589502-12357-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 2 Feb 2009 03:06:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=HAS_PACKAGE,IMPRONONCABLE_2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1236dPC017491 for ; Sun, 1 Feb 2009 19:06:40 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTp8w-0003HV-Lg for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:06:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTp8v-0003HJ-4z for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:06:38 -0500 Received: from [199.232.76.173] (port=45456 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTp8u-0003HG-Vp for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:06:37 -0500 Received: from bay0-omc2-s28.bay0.hotmail.com ([65.54.246.164]:60393) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTp8u-0000ez-Im for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2009 22:06:36 -0500 Received: from BAY143-W31 ([65.55.154.66]) by bay0-omc2-s28.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 1 Feb 2009 19:06:35 -0800 Message-ID: X-Originating-IP: [202.165.107.100] From: Herbert Euler To: Subject: Default font in Emacs Date: Mon, 2 Feb 2009 11:06:35 +0800 Importance: Normal Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 02 Feb 2009 03:06:35.0296 (UTC) FILETIME=[41C9DA00:01C984E3] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ Package: Emacs Version: 23.0.90.1 =20 Because I prefer the FreeMono font to the default font provided=2C I tweak it in my ~/.emacs like this: =20 (let ((font (cond ((eq window-system 'w32) "-outline-courier new-normal-r-normal-normal-16-120-9= 6-96-c-*-fontset-auto2" ) ((eq window-system 'x) "FreeMono-13" )))) (set-default-font font) (add-to-list 'default-frame-alist `(font . =2Cfont))) =20 When I start emacs as a daemon: =20 $ emacs --daemon =20 The cons cell added to `default-frame-alist' seems to be '(font . nil). This causes a segfault when running `emacsclient -c': =20 Program received signal SIGSEGV=2C Segmentation fault. [Switching to Thread 0xb700f700 (LWP 28215)] 0x0806f438 in estimate_mode_line_height (f=3D0xa832b38=2C face_id=3DMODE_= LINE_INACTIVE_FACE_ID) at xdisp.c:1646 1646 int height =3D FONT_HEIGHT (FRAME_FONT (f))=3B (gdb) p FRAME_FONT (f) $1 =3D (struct font *) 0x0 _________________________________________________________________ Drag n=92 drop=97Get easy photo sharing with Windows Live=99 Photos. http://www.microsoft.com/windows/windowslive/photos.aspx= ------------=_1233589502-12357-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2147-done) by emacsbugs.donarmstrong.com; 2 Feb 2009 15:38:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n12Fc6WX011062 for <2147-done@emacsbugs.donarmstrong.com>; Mon, 2 Feb 2009 07:38:08 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEACaihknO+IQk/2dsb2JhbACBbslHhBQGgmw X-IronPort-AV: E=Sophos;i="4.37,365,1231131600"; d="scan'208";a="33201480" Received: from 206-248-132-36.dsl.teksavvy.com (HELO pastel.home) ([206.248.132.36]) by ironport2-out.teksavvy.com with ESMTP; 02 Feb 2009 10:38:01 -0500 Received: by pastel.home (Postfix, from userid 20848) id 1B9608229; Mon, 2 Feb 2009 10:38:00 -0500 (EST) From: Stefan Monnier To: Herbert Euler Cc: 2147-done@emacsbugs.donarmstrong.com Subject: Re: bug#2147: Default font in Emacs Message-ID: References: Date: Mon, 02 Feb 2009 10:38:00 -0500 In-Reply-To: (Herbert Euler's message of "Mon, 2 Feb 2009 11:06:35 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Because I prefer the FreeMono font to the default font provided, I > tweak it in my ~/.emacs like this: > (let ((font (cond ((eq window-system 'w32) > "-outline-courier new-normal-r-normal-normal-16-120-96-96-c-*-fontset-auto2" > ) > ((eq window-system 'x) > "FreeMono-13" > )))) > (set-default-font font) > (add-to-list 'default-frame-alist `(font . ,font))) > When I start emacs as a daemon: > $ emacs --daemon > The cons cell added to `default-frame-alist' seems to be '(font > . nil). This causes a segfault when running `emacsclient -c': Emacs just does what you told him to. The same problem happens if you start "emacs -nw" and then M-x make-frame-on-display. In both cases `window-system' is neither `w32' nor `x' so your `font' variable is set to nil. Stefan ------------=_1233589502-12357-0--