From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: `raise' display property
Date: Fri, 13 Jun 2008 21:29:59 +0900 [thread overview]
Message-ID: <E1K78Pn-0003Z5-8R@etlken.m17n.org> (raw)
In-Reply-To: <jwviqwfsp4p.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 11 Jun 2008 16:23:23 -0400)
In article <jwviqwfsp4p.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> 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
next prev parent reply other threads:[~2008-06-13 12:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 20:23 `raise' display property Stefan Monnier
2008-06-13 12:29 ` Kenichi Handa [this message]
2008-06-14 19:31 ` Stefan Monnier
2008-06-17 15:59 ` Stefan Monnier
2008-06-20 1:16 ` Kenichi Handa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1K78Pn-0003Z5-8R@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.