changeset 95503:1699a530f6a3

(xfont_list): Try an alias.
author Kenichi Handa <handa@m17n.org>
date Tue, 03 Jun 2008 05:57:28 +0000
parents 48afc4995a5c
children 00bdff60fc10
files src/xfont.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfont.c	Tue Jun 03 05:02:03 2008 +0000
+++ b/src/xfont.c	Tue Jun 03 05:57:28 2008 +0000
@@ -345,6 +345,7 @@
     }
   if (NILP (list) && ! NILP (registry))
     {
+      /* Try alternate registries.  */
       Lisp_Object alter;
 
       if ((alter = Fassoc (SYMBOL_NAME (registry),
@@ -365,6 +366,13 @@
 	      }
 	}
     }
+  if (NILP (list))
+    {
+      /* Try alias.  */
+      val = assq_no_quit (QCname, AREF (spec, FONT_EXTRA_INDEX));
+      if (CONSP (val) && STRINGP (XCDR (val)))
+	list = xfont_list_pattern (frame, display, SDATA (XCDR (val)));
+    }
 
   return list;
 }