aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-05-27 00:50:01 +0000
committerStefan Monnier2008-05-27 00:50:01 +0000
commit1fb5aad76f8336192851cfa231a568d062b97ccb (patch)
tree473c00ce17b761752e040d4a2da64b536778fc8d /src
parentcbb8ec3e03fd2a9c4c19e17eb8393487ce06c0eb (diff)
downloademacs-1fb5aad76f8336192851cfa231a568d062b97ccb.tar.gz
emacs-1fb5aad76f8336192851cfa231a568d062b97ccb.zip
(casify_object): Try to guess better whether the argument is a byte or a char.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog32
-rw-r--r--src/casefiddle.c6
2 files changed, 23 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 974036d1375..e899db277bf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,32 +1,34 @@
12008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * casefiddle.c (casify_object): Try to guess better whether the
4 argument is a byte or a char.
5
12008-05-26 Andreas Schwab <schwab@suse.de> 62008-05-26 Andreas Schwab <schwab@suse.de>
2 7
3 * xselect.c (x_reply_selection_request): Properly handle format == 8 * xselect.c (x_reply_selection_request): Properly handle format == 32.
4 32. Always send multiples of format size. 9 Always send multiples of format size.
5 10
6 * xterm.c (x_set_frame_alpha): Fix type mismatch. 11 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7 12
82008-05-26 Jason Rumney <jasonr@gnu.org> 132008-05-26 Jason Rumney <jasonr@gnu.org>
9 14
10 * w32font.c (w32font_text_extents): Zero whole metrics struct first. 15 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11 (compute_metrics): Don't set failure if we just cleared the cache. 16 (compute_metrics): Don't set failure if we just cleared the cache.
12 (w32_weight_table): Remove unused variable. 17 (w32_weight_table): Remove unused variable.
13 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for 18 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14 backwards compatibility. 19 backwards compatibility.
15 20
162008-05-25 Kenichi Handa <handa@m17n.org> 212008-05-25 Kenichi Handa <handa@m17n.org>
17 22
18 * w32term.c (x_draw_glyph_string): Fix calculation of underline 23 * w32term.c (x_draw_glyph_string):
19 position. 24 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20
21 * xterm.c (x_draw_glyph_string): Fix calculation of underline
22 position.
23 25
24 * xfaces.c: Delete unused function prototypes. 26 * xfaces.c: Delete unused function prototypes.
25 (xstrlwr, font_frame): Delete them. 27 (xstrlwr, font_frame): Delete them.
26 (clear_face_cache): Delete unused variable. 28 (clear_face_cache): Delete unused variable.
27 29
28 * xftfont.c (xftfont_open): Delete unused variable. If 30 * xftfont.c (xftfont_open): Delete unused variable.
29 underline_thickness is not 1, adjust underline_position. 31 If underline_thickness is not 1, adjust underline_position.
30 32
31 * ftxfont.c (ftxfont_open): Delete unused variable. 33 * ftxfont.c (ftxfont_open): Delete unused variable.
32 34
@@ -37,7 +39,7 @@
37 (check_gstring, check_otf_features, otf_list, otf_tag_symbol) 39 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
38 (otf_open, font_otf_capability, generate_otf_features) 40 (otf_open, font_otf_capability, generate_otf_features)
39 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): 41 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
40 Commented out by surrounding "#if 0" and "#endif" for the moment. 42 Comment out by surrounding "#if 0" and "#endif" for the moment.
41 (Ffont_drive_otf, Ffont_otf_alternates): Likewise. 43 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
42 (syms_of_font): Codes for accessing above commented out. 44 (syms_of_font): Codes for accessing above commented out.
43 45
diff --git a/src/casefiddle.c b/src/casefiddle.c
index af76a77f221..bda49fb3653 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -57,6 +57,12 @@ casify_object (flag, obj)
57 return obj; 57 return obj;
58 58
59 c1 = XFASTINT (obj) & ~flagbits; 59 c1 = XFASTINT (obj) & ~flagbits;
60 /* FIXME: Even if enable-multibyte-characters is nil, we may
61 manipulate multibyte chars. This means we have a bug for latin-1
62 chars since when we receive an int 128-255 we can't tell whether
63 it's an eight-bit byte or a latin-1 char. */
64 if (c1 >= 256)
65 multibyte = 1;
60 if (! multibyte) 66 if (! multibyte)
61 MAKE_CHAR_MULTIBYTE (c1); 67 MAKE_CHAR_MULTIBYTE (c1);
62 c = DOWNCASE (c1); 68 c = DOWNCASE (c1);