diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 5 | ||||
| -rw-r--r-- | src/xfaces.c | 3 |
4 files changed, 12 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f26d50f6ce9..973f9c1b2a6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-06-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | GLYPH_CODE_FACE returns EMACS_INT, not int. | ||
| 4 | * dispextern.h (merge_faces): | ||
| 5 | * xfaces.c (merge_faces): | ||
| 6 | * xdisp.c (get_next_display_element): | ||
| 7 | (next_element_from_display_vector): Don't assume EMACS_INT fits in int. | ||
| 8 | |||
| 3 | * character.h (CHAR_VALID_P): Remove unused parameter. | 9 | * character.h (CHAR_VALID_P): Remove unused parameter. |
| 4 | * fontset.c, lisp.h, xdisp.c: All uses changed. | 10 | * fontset.c, lisp.h, xdisp.c: All uses changed. |
| 5 | 11 | ||
diff --git a/src/dispextern.h b/src/dispextern.h index 75ebc462ce4..0ededf33ac6 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3163,7 +3163,7 @@ int face_at_string_position (struct window *w, Lisp_Object string, | |||
| 3163 | EMACS_INT pos, EMACS_INT bufpos, | 3163 | EMACS_INT pos, EMACS_INT bufpos, |
| 3164 | EMACS_INT region_beg, EMACS_INT region_end, | 3164 | EMACS_INT region_beg, EMACS_INT region_end, |
| 3165 | EMACS_INT *endptr, enum face_id, int mouse); | 3165 | EMACS_INT *endptr, enum face_id, int mouse); |
| 3166 | int merge_faces (struct frame *, Lisp_Object, int, int); | 3166 | int merge_faces (struct frame *, Lisp_Object, EMACS_INT, int); |
| 3167 | int compute_char_face (struct frame *, int, Lisp_Object); | 3167 | int compute_char_face (struct frame *, int, Lisp_Object); |
| 3168 | void free_all_realized_faces (Lisp_Object); | 3168 | void free_all_realized_faces (Lisp_Object); |
| 3169 | extern Lisp_Object Qforeground_color, Qbackground_color; | 3169 | extern Lisp_Object Qforeground_color, Qbackground_color; |
diff --git a/src/xdisp.c b/src/xdisp.c index b70e0dc0d0b..ad99fd41ffb 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5819,7 +5819,8 @@ get_next_display_element (struct it *it) | |||
| 5819 | display. Then, set IT->dpvec to these glyphs. */ | 5819 | display. Then, set IT->dpvec to these glyphs. */ |
| 5820 | Lisp_Object gc; | 5820 | Lisp_Object gc; |
| 5821 | int ctl_len; | 5821 | int ctl_len; |
| 5822 | int face_id, lface_id = 0 ; | 5822 | int face_id; |
| 5823 | EMACS_INT lface_id = 0; | ||
| 5823 | int escape_glyph; | 5824 | int escape_glyph; |
| 5824 | 5825 | ||
| 5825 | /* Handle control characters with ^. */ | 5826 | /* Handle control characters with ^. */ |
| @@ -6374,7 +6375,7 @@ next_element_from_display_vector (struct it *it) | |||
| 6374 | it->face_id = it->dpvec_face_id; | 6375 | it->face_id = it->dpvec_face_id; |
| 6375 | else | 6376 | else |
| 6376 | { | 6377 | { |
| 6377 | int lface_id = GLYPH_CODE_FACE (gc); | 6378 | EMACS_INT lface_id = GLYPH_CODE_FACE (gc); |
| 6378 | if (lface_id > 0) | 6379 | if (lface_id > 0) |
| 6379 | it->face_id = merge_faces (it->f, Qt, lface_id, | 6380 | it->face_id = merge_faces (it->f, Qt, lface_id, |
| 6380 | it->saved_face_id); | 6381 | it->saved_face_id); |
diff --git a/src/xfaces.c b/src/xfaces.c index b14710245b1..a56e54c90cd 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6223,7 +6223,8 @@ face_at_string_position (struct window *w, Lisp_Object string, | |||
| 6223 | */ | 6223 | */ |
| 6224 | 6224 | ||
| 6225 | int | 6225 | int |
| 6226 | merge_faces (struct frame *f, Lisp_Object face_name, int face_id, int base_face_id) | 6226 | merge_faces (struct frame *f, Lisp_Object face_name, EMACS_INT face_id, |
| 6227 | int base_face_id) | ||
| 6227 | { | 6228 | { |
| 6228 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; | 6229 | Lisp_Object attrs[LFACE_VECTOR_SIZE]; |
| 6229 | struct face *base_face; | 6230 | struct face *base_face; |