From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Kenichi Handa <handa@m17n.org>
Cc: Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>, emacs-devel@gnu.org
Subject: Re: set-fontset-font and preferred charset?
Date: Wed, 08 Jul 2009 17:48:34 +0900 [thread overview]
Message-ID: <wlocrvtva5.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <wlocrv8ukg.wl%mituharu@math.s.chiba-u.ac.jp>
>>>>> On Wed, 08 Jul 2009 17:09:35 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:
>>>>> On Wed, 08 Jul 2009 16:44:50 +0900, Kenichi Handa <handa@m17n.org> said:
>>> 3. When I open "HELLO" file, some (not all) Japanese characters in
>>> other buffers start to be rendered using xft backend. When I open
>>> another X frame, the font suddenly change to X font (both old and
>>> new frames).
>> There was a silly bug in handling a preferred charset in
>> fontset_find_font. I've installed a fix for the trunk.
> Could you try compiling it with -DENABLE_CHECKING? I got
> .../src/fontset.c:618: Emacs fatal error: assertion failed:
> VECTORLIKEP((rfont_def))
> with the current trunk code when I tried C-h h. It doesn't happen
> with the EMACS_23_1_RC branch.
When the assertion failure happened, found_index == -1,
charset_matched == -1, and i == 0. The negative found_index is
problematic because it is used as an index for AREF.
Perhaps the following condition was missing?
Index: src/fontset.c
===================================================================
RCS file: /sources/emacs/emacs/src/fontset.c,v
retrieving revision 1.177
diff -c -p -r1.177 fontset.c
*** src/fontset.c 8 Jul 2009 03:49:12 -0000 1.177
--- src/fontset.c 8 Jul 2009 08:41:15 -0000
*************** fontset_find_font (fontset, c, face, id,
*** 575,581 ****
Lisp_Object font_def;
Lisp_Object font_entity, font_object;
! if (i == 0)
{
/* Try the element matching with the charset ID at first. */
found_index = charset_matched;
--- 575,581 ----
Lisp_Object font_def;
Lisp_Object font_entity, font_object;
! if (i == 0 && charset_matched >= 0)
{
/* Try the element matching with the charset ID at first. */
found_index = charset_matched;
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
next prev parent reply other threads:[~2009-07-08 8:48 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-03 5:15 set-fontset-font and preferred charset? Yoshiaki Kasahara
2009-07-03 5:53 ` Kenichi Handa
2009-07-03 6:24 ` Werner LEMBERG
2009-07-03 7:21 ` Kenichi Handa
2009-07-03 8:09 ` YAMAMOTO Mitsuharu
2009-07-06 12:17 ` Kenichi Handa
2009-07-03 9:05 ` Yoshiaki Kasahara
2009-07-08 7:44 ` Kenichi Handa
2009-07-08 8:09 ` YAMAMOTO Mitsuharu
2009-07-08 8:48 ` YAMAMOTO Mitsuharu [this message]
2009-07-08 11:29 ` Kenichi Handa
2009-07-09 0:00 ` YAMAMOTO Mitsuharu
2009-07-09 1:06 ` Kenichi Handa
2009-07-08 8:13 ` Yoshiaki Kasahara
2009-07-09 1:21 ` Kenichi Handa
2009-07-09 2:40 ` Yoshiaki Kasahara
2009-07-09 3:55 ` Kenichi Handa
2009-07-09 4:32 ` Yoshiaki Kasahara
2009-07-09 4:50 ` Kenichi Handa
2009-07-09 5:06 ` Yoshiaki Kasahara
2009-07-09 12:00 ` Kenichi Handa
2009-07-10 2:52 ` Yoshiaki Kasahara
2009-07-10 4:05 ` 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=wlocrvtva5.wl%mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
--cc=kasahara@nc.kyushu-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.