unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: sds@gnu.org, emacs-devel@gnu.org
Subject: Re: crash: divide by 0
Date: Tue, 4 Jan 2005 09:52:44 +0900 (JST)	[thread overview]
Message-ID: <200501040052.JAA09191@etlken.m17n.org> (raw)
In-Reply-To: <41D97B49.2000702@freemail.hu> (banyos@freemail.hu)

In article <41D97B49.2000702@freemail.hu>, "B. Anyos" <banyos@freemail.hu> 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  <jasonr@gnu.org>

	* 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  <mituharu@math.s.chiba-u.ac.jp>

	* 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
handa@m17n.org

  reply	other threads:[~2005-01-04  0:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03 15:58 crash: divide by 0 Sam Steingold
2005-01-03 16:28 ` B. Anyos
2005-01-03 17:05   ` B. Anyos
2005-01-04  0:52     ` Kenichi Handa [this message]
2005-01-04  8:50       ` B. Anyos
2005-01-03 17:00 ` Luc Teirlinck

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200501040052.JAA09191@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=sds@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).