aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-06-05 04:18:55 +0000
committerKenichi Handa2008-06-05 04:18:55 +0000
commit7740d2c7fa7876172239e6d974b473fde07095cf (patch)
treed2e4c2fe0c48fb5a8a91cd0a44322b9b4efdccc3 /src
parent76f54ecc910f8b870b13bc2dd5950f08db4f05b2 (diff)
downloademacs-7740d2c7fa7876172239e6d974b473fde07095cf.tar.gz
emacs-7740d2c7fa7876172239e6d974b473fde07095cf.zip
(xfont_list): Don't set registry to iso8859-1 even if it
is unspecified.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/xfont.c7
2 files changed, 12 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9abd806ce63..454aa92093f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12008-06-05 Kenichi Handa <handa@m17n.org>
2
3 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
4 is unspecified.
5
6 * xfaces.c (realize_x_face): If the font-related face attributes
7 are the same as those of default face, realize a new fontset
8 from default->fontset.
9
12008-06-05 Stefan Monnier <monnier@iro.umontreal.ca> 102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2 11
3 * xdisp.c (move_it_in_display_line_to): Improve the type of its args. 12 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
diff --git a/src/xfont.c b/src/xfont.c
index 8684af43122..8e11d204089 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -206,7 +206,8 @@ extern Lisp_Object Vface_alternative_font_registry_alist;
206static int 206static int
207compare_font_names (const void *name1, const void *name2) 207compare_font_names (const void *name1, const void *name2)
208{ 208{
209 return xstrcasecmp (*(const char **) name1, *(const char **) name2); 209 return xstrcasecmp (*(const unsigned char **) name1,
210 *(const unsigned char **) name2);
210} 211}
211 212
212static Lisp_Object xfont_list_pattern P_ ((Lisp_Object, Display *, char *)); 213static Lisp_Object xfont_list_pattern P_ ((Lisp_Object, Display *, char *));
@@ -325,8 +326,6 @@ xfont_list (frame, spec)
325 } 326 }
326 327
327 registry = AREF (spec, FONT_REGISTRY_INDEX); 328 registry = AREF (spec, FONT_REGISTRY_INDEX);
328 if (NILP (registry))
329 ASET (spec, FONT_REGISTRY_INDEX, Qiso8859_1);
330 len = font_unparse_xlfd (spec, 0, name, 256); 329 len = font_unparse_xlfd (spec, 0, name, 256);
331 ASET (spec, FONT_REGISTRY_INDEX, registry); 330 ASET (spec, FONT_REGISTRY_INDEX, registry);
332 if (len < 0) 331 if (len < 0)
@@ -371,7 +370,7 @@ xfont_list (frame, spec)
371 /* Try alias. */ 370 /* Try alias. */
372 val = assq_no_quit (QCname, AREF (spec, FONT_EXTRA_INDEX)); 371 val = assq_no_quit (QCname, AREF (spec, FONT_EXTRA_INDEX));
373 if (CONSP (val) && STRINGP (XCDR (val))) 372 if (CONSP (val) && STRINGP (XCDR (val)))
374 list = xfont_list_pattern (frame, display, SDATA (XCDR (val))); 373 list = xfont_list_pattern (frame, display, (char *) SDATA (XCDR (val)));
375 } 374 }
376 375
377 return list; 376 return list;