From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: `raise' display property Date: Fri, 13 Jun 2008 21:29:59 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1213360358 7484 80.91.229.12 (13 Jun 2008 12:32:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2008 12:32:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 13 14:33:22 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 1K78Sw-0008IL-NE for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 14:33:14 +0200 Original-Received: from localhost ([127.0.0.1]:38539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K78S8-0002tT-Sr for ged-emacs-devel@m.gmane.org; Fri, 13 Jun 2008 08:32:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K78Q4-0001E3-7y for emacs-devel@gnu.org; Fri, 13 Jun 2008 08:30:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K78Q2-0001Bn-2W for emacs-devel@gnu.org; Fri, 13 Jun 2008 08:30:15 -0400 Original-Received: from [199.232.76.173] (port=44786 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K78Q1-0001Ba-Tg for emacs-devel@gnu.org; Fri, 13 Jun 2008 08:30:13 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:59393) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K78Q1-0006Pv-LD for emacs-devel@gnu.org; Fri, 13 Jun 2008 08:30:14 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m5DCUj5v015123; Fri, 13 Jun 2008 21:30:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m5DCU6a6009869; Fri, 13 Jun 2008 21:30:06 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m5DCTxGG016726; Fri, 13 Jun 2008 21:29:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K78Pn-0003Z5-8R; Fri, 13 Jun 2008 21:29:59 +0900 In-reply-to: (message from Stefan Monnier on Wed, 11 Jun 2008 16:23:23 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:99091 Archived-At: In article , Stefan Monnier writes: > 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? --- Kenichi Handa handa@ni.aist.go.jp