all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: `raise' display property
Date: Sat, 14 Jun 2008 15:31:12 -0400	[thread overview]
Message-ID: <jwvd4mjbyr5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1K78Pn-0003Z5-8R@etlken.m17n.org> (Kenichi Handa's message of "Fri, 13 Jun 2008 21:29:59 +0900")

>> 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




  reply	other threads:[~2008-06-14 19:31 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
2008-06-14 19:31   ` Stefan Monnier [this message]
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=jwvd4mjbyr5.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /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.