summaryrefslogtreecommitdiff
path: root/src/xfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfont.c')
-rw-r--r--src/xfont.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xfont.c b/src/xfont.c
index e6f0bde5114..8684af43122 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -345,6 +345,7 @@ xfont_list (frame, spec)
}
if (NILP (list) && ! NILP (registry))
{
+ /* Try alternate registries. */
Lisp_Object alter;
if ((alter = Fassoc (SYMBOL_NAME (registry),
@@ -365,6 +366,13 @@ xfont_list (frame, spec)
}
}
}
+ 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;
}