[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `raise' display property
From: |
Kenichi Handa |
Subject: |
Re: `raise' display property |
Date: |
Fri, 13 Jun 2008 21:29:59 +0900 |
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) |
In article <address@hidden>, Stefan Monnier <address@hidden> 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
address@hidden