emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash: divide by 0


From: Kenichi Handa
Subject: Re: crash: divide by 0
Date: Tue, 4 Jan 2005 09:52:44 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, "B. Anyos" <address@hidden> writes:

> It seems that
>       FRAME_SPACE_WIDTH (it->f)

> is zero (i.e. it->f->space_width is zero)
> While debugging and changing this to anything but zero
> the crash goes away.

> This space_width - according to the Changelog - is a
> relatively new code (added by Kenichi Handa on 2004-12-30)

> Could it be the problem that it is not initialized ?

I wrote:

>> Similar change will be necessary for the other platforms.

So, I think you are using Emacs on Mac or Windows.  And, as
I found these changelogs in today's emacs:

2005-01-03  Jason Rumney  <address@hidden>

        * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
        fontp->space_width to FONT_WIDTH so they are valid.

        * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
        average width. Set fontp->average_width and fontp->space_width to
        their appropriate values.

        * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
        fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
        fontp->space_width.

2005-01-03  YAMAMOTO Mitsuharu  <address@hidden>

        * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
        (x_font_min_bounds, XLoadQueryFont): Use the correct font width
        metrics for max and min bounds.
        (x_load_font): Correctly calculate average font width metrics.

perhaps the problem is already fixed.

---
Ken'ichi HANDA
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]