changeset 104319:61b86c490f92

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Aug 2009 00:21:36 +0000
parents eb3f2c155d07
children 5a32fe3781b9
files src/fontset.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Mon Aug 17 23:50:26 2009 +0000
+++ b/src/fontset.c	Tue Aug 18 00:21:36 2009 +0000
@@ -2083,6 +2083,7 @@
 DEFUN ("fontset-font", Ffontset_font, Sfontset_font, 2, 3, 0,
        doc: /* Return a font name pattern for character CH in fontset NAME.
 If NAME is t, find a pattern in the default fontset.
+If NAME is nil, find a pattern in the fontset of the selected frame.
 
 The value has the form (FAMILY . REGISTRY), where FAMILY is a font
 family name and REGISTRY is a font registry name.  This is actually
@@ -2115,6 +2116,8 @@
 	      Lisp_Object family, registry;
 
 	      val = AREF (elt, j);
+	      if (NILP (val))
+		break;
 	      repertory = AREF (val, 1);
 	      if (INTEGERP (repertory))
 		{