diff options
| author | Kenichi Handa | 2008-06-03 05:57:28 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-06-03 05:57:28 +0000 |
| commit | 37470f4dfe60ca47bc9765d11635094219abd35e (patch) | |
| tree | 14c73a3e869cac2b14f4e49bee3bae7bf9f0d610 | |
| parent | 913f26c2a47d10a49b48565317151da92971b256 (diff) | |
| download | emacs-37470f4dfe60ca47bc9765d11635094219abd35e.tar.gz emacs-37470f4dfe60ca47bc9765d11635094219abd35e.zip | |
(xfont_list): Try an alias.
| -rw-r--r-- | src/xfont.c | 8 |
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) | |||
| 345 | } | 345 | } |
| 346 | if (NILP (list) && ! NILP (registry)) | 346 | if (NILP (list) && ! NILP (registry)) |
| 347 | { | 347 | { |
| 348 | /* Try alternate registries. */ | ||
| 348 | Lisp_Object alter; | 349 | Lisp_Object alter; |
| 349 | 350 | ||
| 350 | if ((alter = Fassoc (SYMBOL_NAME (registry), | 351 | if ((alter = Fassoc (SYMBOL_NAME (registry), |
| @@ -365,6 +366,13 @@ xfont_list (frame, spec) | |||
| 365 | } | 366 | } |
| 366 | } | 367 | } |
| 367 | } | 368 | } |
| 369 | if (NILP (list)) | ||
| 370 | { | ||
| 371 | /* Try alias. */ | ||
| 372 | val = assq_no_quit (QCname, AREF (spec, FONT_EXTRA_INDEX)); | ||
| 373 | if (CONSP (val) && STRINGP (XCDR (val))) | ||
| 374 | list = xfont_list_pattern (frame, display, SDATA (XCDR (val))); | ||
| 375 | } | ||
| 368 | 376 | ||
| 369 | return list; | 377 | return list; |
| 370 | } | 378 | } |