From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: `raise' display property Date: Sat, 14 Jun 2008 15:31:12 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213471927 6330 80.91.229.12 (14 Jun 2008 19:32:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 19:32:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 14 21:32:50 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7bUT-0004A5-V7 for ged-emacs-devel@m.gmane.org; Sat, 14 Jun 2008 21:32:46 +0200 Original-Received: from localhost ([127.0.0.1]:41032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7bTf-0005kD-P2 for ged-emacs-devel@m.gmane.org; Sat, 14 Jun 2008 15:31:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7bT2-0005XC-Uk for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:31:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7bT1-0005Wa-Jl for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:31:16 -0400 Original-Received: from [199.232.76.173] (port=33902 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7bT1-0005WV-AF for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:31:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:7829) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7bT0-0000g4-Fk for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:31:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcFABe5U0jO+KWv/2dsb2JhbACBW6sT X-IronPort-AV: E=Sophos;i="4.27,645,1204520400"; d="scan'208";a="22554406" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 14 Jun 2008 15:31:12 -0400 Original-Received: from pastel.home ([206.248.165.175]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id UZT85912; Sat, 14 Jun 2008 15:31:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 913088336; Sat, 14 Jun 2008 15:31:12 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Fri, 13 Jun 2008 21:29:59 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:99208 Archived-At: >> Let's say I have a LaTeX file foo.tex which just contains: >> $to^to$ >> Emacs crashes if I open it with "emacs -Q ~/tmp/foo.tex". >> The crash happens when handling the `raise' display property added by >> font-lock in response to the ^. >> The segfault is in xdisp.c around line 4173: >> #ifdef HAVE_WINDOW_SYSTEM >> value = XCAR (XCDR (spec)); >> if (NUMBERP (value)) >> { >> struct face *face = FACE_FROM_ID (it->f, it->face_id); it-> voffset = - (XFLOATINT (value) >> * (FONT_HEIGHT (face->font))); >> } >> #endif /* HAVE_WINDOW_SYSTEM */ >> where face->font is NULL. > This part of code surely has to check face->font before > calling FONT_HEIGHT, but it's strange that Emacs couldn't > find a font for `t with `superscript' face. > Please show me the result of M-x font-show-log RET? I haven't been able to reproduce it with the machines I have here. Maybe it got fixed since, Stefan