aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-01-24 22:42:02 +0000
committerChong Yidong2009-01-24 22:42:02 +0000
commit8657206e1dcc9ade323d8cbb213629723c46b222 (patch)
tree160f2c94dfbceadd332076d03bb7cc943c22cc2a
parent5ce8730828884d64a1505e3c5475a237aae5e671 (diff)
downloademacs-8657206e1dcc9ade323d8cbb213629723c46b222.tar.gz
emacs-8657206e1dcc9ade323d8cbb213629723c46b222.zip
(fontset_font): If we know there is no font, don't do any work.
-rw-r--r--src/fontset.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c
index eca79168ffb..983f4f0d044 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -660,6 +660,10 @@ fontset_font (fontset, c, face, id)
660 Lisp_Object rfont_def; 660 Lisp_Object rfont_def;
661 Lisp_Object base_fontset; 661 Lisp_Object base_fontset;
662 662
663 /* If we know there is no font of C, don't do any work. */
664 if (EQ (fontset_ref (fontset, c), Qt))
665 return Qnil;
666
663 /* Try a font-group of FONTSET. */ 667 /* Try a font-group of FONTSET. */
664 rfont_def = fontset_find_font (fontset, c, face, id, 0); 668 rfont_def = fontset_find_font (fontset, c, face, id, 0);
665 if (VECTORP (rfont_def)) 669 if (VECTORP (rfont_def))
@@ -696,7 +700,7 @@ fontset_font (fontset, c, face, id)
696 return rfont_def; 700 return rfont_def;
697 } 701 }
698 702
699 /* Remeber that we have no font for C. */ 703 /* Remember that we have no font for C. */
700 FONTSET_SET (fontset, make_number (c), Qt); 704 FONTSET_SET (fontset, make_number (c), Qt);
701 705
702 return Qnil; 706 return Qnil;