aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-05-07 04:51:47 +0000
committerKenichi Handa2002-05-07 04:51:47 +0000
commit3d79abfbd43b6211e0df735be4c156d9e460d5f6 (patch)
treee09fff3ce920b6758d5cb0968fe8ab767f19c014 /src
parent82a2ce2c4dda7506706dab16be925161d9693612 (diff)
downloademacs-3d79abfbd43b6211e0df735be4c156d9e460d5f6.tar.gz
emacs-3d79abfbd43b6211e0df735be4c156d9e460d5f6.zip
(try_font_list): Give higher priority to fontset's
family than face's family.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog45
-rw-r--r--src/xfaces.c8
2 files changed, 49 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9be736a7fc3..4953bbf2d62 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,48 @@
12002-05-07 Kenichi Handa <handa@etl.go.jp>
2
3 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
4
5 * callproc.c (Fcall_process): Be sure to give the current buffer
6 to decode_coding_c_string. Update PT and PT_BYTE after the
7 insertion.
8
9 * charset.c (struct charset_map_entries): New struct.
10 (load_charset_map): Renamed from parse_charset_map. New args
11 entries and n_entries. Caller changed.
12 (load_charset_map_from_file): Renamed from load_charset_map.
13 Caller changed. New arg control_flag. Call load_charset_map at
14 the tail.
15 (load_charset_map_from_vector): New function.
16 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17 (encode_char): If the charset is compact, change a character index
18 to a code point.
19
20 * coding.c (coding_alloc_by_making_gap): Check the case that the
21 source and destination are the same correctly.
22 (decode_coding_raw_text): Set coding->consumed_char and
23 coding->consumed to 0.
24 (produce_chars): If coding->chars_at_source is nonzero, update
25 coding->consumed_char and coding->consumed before calling
26 alloc_destination.
27 (Fdefine_coding_system_alias): Register ALIAS in
28 Vcoding_system_alist.
29 (syms_of_coding): Define `no-convesion' coding system at the tail.
30
31 * fileio.c (Finsert_file_contents): Set coding_system instead of
32 val. If the current buffer is multibyte, always call
33 decode_coding_gap.
34
35 * xfaces.c (try_font_list): Give higher priority to fontset's
36 family than face's family.
37
382002-04-18 Kenichi Handa <handa@etl.go.jp>
39
40 * callproc.c (Fcall_process): Be sure to give the current buffer
41 to decode_coding_c_string.
42
43 * xfaces.c (try_font_list): Give a family specified in a fontset
44 higher priority than a family specified in a face.
45
12002-04-09 Kenichi Handa <handa@etl.go.jp> 462002-04-09 Kenichi Handa <handa@etl.go.jp>
2 47
3 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. 48 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
diff --git a/src/xfaces.c b/src/xfaces.c
index d02602515fe..4f7afa87f1d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6072,12 +6072,12 @@ try_font_list (f, attrs, family, registry, fonts)
6072 int nfonts = 0; 6072 int nfonts = 0;
6073 Lisp_Object face_family = attrs[LFACE_FAMILY_INDEX]; 6073 Lisp_Object face_family = attrs[LFACE_FAMILY_INDEX];
6074 6074
6075 if (STRINGP (face_family)) 6075 if (!NILP (family))
6076 nfonts = try_alternative_families (f, face_family, registry, fonts);
6077
6078 if (nfonts == 0 && !NILP (family))
6079 nfonts = try_alternative_families (f, family, registry, fonts); 6076 nfonts = try_alternative_families (f, family, registry, fonts);
6080 6077
6078 if (nfonts == 0 && STRINGP (face_family))
6079 nfonts = try_alternative_families (f, face_family, registry, fonts);
6080
6081 /* Try font family of the default face or "fixed". */ 6081 /* Try font family of the default face or "fixed". */
6082 if (nfonts == 0) 6082 if (nfonts == 0)
6083 { 6083 {