[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist
From: |
Chong Yidong |
Subject: |
bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist |
Date: |
Sat, 24 Jan 2009 14:47:16 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Jason Rumney <jasonr@gnu.org> writes:
>> However, there are several other places in that function that return
>> with a Qnil, without doing this FONTSET_SET. Do matters improve if
>> we do the same FONTSET_SET call before returning?
>
> It doesn't seem to help much, if at all.
How about something like this? Does it improve performance noticeably?
*** trunk/src/fontset.c.~1.150.~ 2009-01-08 06:46:23.000000000 -0500
--- trunk/src/fontset.c 2009-01-24 14:44:09.000000000 -0500
***************
*** 660,665 ****
--- 660,668 ----
Lisp_Object rfont_def;
Lisp_Object base_fontset;
+ if (EQ (Fchar_table_range (fontset, make_number (c)), Qt))
+ return Qnil;
+
/* Try a font-group of FONTSET. */
rfont_def = fontset_find_font (fontset, c, face, id, 0);
if (VECTORP (rfont_def))
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Jason Rumney, 2009/01/22
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Chong Yidong, 2009/01/23
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Jason Rumney, 2009/01/23
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Jason Rumney, 2009/01/25
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Juanma Barranquero, 2009/01/25
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Kenichi Handa, 2009/01/26
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Juanma Barranquero, 2009/01/26
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Kenichi Handa, 2009/01/26
- bug#1990: 23.0.60; Emacs trying too hard to find fonts that don't exist, Chong Yidong, 2009/01/26