aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-11-27 08:01:45 +0000
committerKenichi Handa2008-11-27 08:01:45 +0000
commit5b30be1a9d2860b8dc35be679fc378175bfb93a8 (patch)
tree8eb9d32d3ca43697b733879cd4e422ffe205e145 /src
parent7ef1f5d11c82d063cd1c0ee61253f897e7c766fb (diff)
downloademacs-5b30be1a9d2860b8dc35be679fc378175bfb93a8.tar.gz
emacs-5b30be1a9d2860b8dc35be679fc378175bfb93a8.zip
(fontset_add): Adjusted for the change of
char_table_ref_and_range. (fontset_get_font_group): Likewise. (Ffontset_info): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/fontset.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fontset.c b/src/fontset.c
index e1ba05ea3e8..9053fbdc1f3 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -352,9 +352,8 @@ fontset_add (fontset, range, elt, add)
352 int from1, to1; 352 int from1, to1;
353 353
354 do { 354 do {
355 from1 = from, to1 = to;
355 args[idx] = char_table_ref_and_range (fontset, from, &from1, &to1); 356 args[idx] = char_table_ref_and_range (fontset, from, &from1, &to1);
356 if (to < to1)
357 to1 = to;
358 char_table_set_range (fontset, from, to1, 357 char_table_set_range (fontset, from, to1,
359 NILP (args[idx]) ? args[1 - idx] 358 NILP (args[idx]) ? args[1 - idx]
360 : Fvconcat (2, args)); 359 : Fvconcat (2, args));
@@ -460,7 +459,7 @@ fontset_get_font_group (Lisp_Object fontset, int c)
460{ 459{
461 Lisp_Object font_group; 460 Lisp_Object font_group;
462 Lisp_Object base_fontset; 461 Lisp_Object base_fontset;
463 int from, to, i; 462 int from = 0, to = MAX_CHAR, i;
464 463
465 xassert (! BASE_FONTSET_P (fontset)); 464 xassert (! BASE_FONTSET_P (fontset));
466 if (c >= 0) 465 if (c >= 0)
@@ -1857,13 +1856,11 @@ fontset. The format is the same as above. */)
1857 { 1856 {
1858 for (c = 0; c <= MAX_CHAR; ) 1857 for (c = 0; c <= MAX_CHAR; )
1859 { 1858 {
1860 int from, to; 1859 int from = c, to = MAX_5_BYTE_CHAR;
1861 1860
1862 if (c <= MAX_5_BYTE_CHAR) 1861 if (c <= MAX_5_BYTE_CHAR)
1863 { 1862 {
1864 val = char_table_ref_and_range (fontsets[k], c, &from, &to); 1863 val = char_table_ref_and_range (fontsets[k], c, &from, &to);
1865 if (to > MAX_5_BYTE_CHAR)
1866 to = MAX_5_BYTE_CHAR;
1867 } 1864 }
1868 else 1865 else
1869 { 1866 {