From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Subject: Re: Crashes with latest font code
Date: Sat, 20 May 2006 03:41:54 +0000 (UTC) [thread overview]
Message-ID: <loom.20060520T053926-630@post.gmane.org> (raw)
In-Reply-To: E1Fh6ce-00084a-GZ@fencepost.gnu.org
Richard Stallman <rms <at> gnu.org> writes:
>
> Richard's latest changes to the font handling code (which are not
> documented in src/ChangeLog) cause very reliable crashes with my setup.
>
> I am surprised the new code behaves differently from the old. Can you
> figure out why? It must be some tiny bug.
>
I'm not sure if this is a right fix, but I could avoid similar
crashes on my side with the following change.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
Index: src/xfaces.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xfaces.c,v
retrieving revision 1.347
diff -c -r1.347 xfaces.c
*** src/xfaces.c 17 May 2006 22:51:07 -0000 1.347
--- src/xfaces.c 20 May 2006 03:38:09 -0000
***************
*** 6636,6642 ****
best = NULL;
/* Find the best match among the non-scalable fonts. */
! for (i = 1; i < nfonts; ++i)
if (!font_scalable_p (fonts + i)
&& better_font_p (specified, fonts + i, best, 1, avgwidth))
{
--- 6636,6642 ----
best = NULL;
/* Find the best match among the non-scalable fonts. */
! for (i = 0; i < nfonts; ++i)
if (!font_scalable_p (fonts + i)
&& better_font_p (specified, fonts + i, best, 1, avgwidth))
{
next prev parent reply other threads:[~2006-05-20 3:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-18 19:23 Crashes with latest font code Romain Francoise
2006-05-19 15:10 ` Richard Stallman
2006-05-20 3:41 ` YAMAMOTO Mitsuharu [this message]
2006-05-21 8:21 ` Romain Francoise
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=loom.20060520T053926-630@post.gmane.org \
--to=mituharu@math.s.chiba-u.ac.jp \
/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.