diff options
| author | Stefan Monnier | 2008-02-26 18:18:05 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-26 18:18:05 +0000 |
| commit | 0f8b27ea2411963217874dad061734014bb534f2 (patch) | |
| tree | 1acdc640b780585a4a1a4ad4ce5c60b3cd1562f2 /src | |
| parent | 575b782f82f1e37a317a5854b0bfe889f5412155 (diff) | |
| download | emacs-0f8b27ea2411963217874dad061734014bb534f2.tar.gz emacs-0f8b27ea2411963217874dad061734014bb534f2.zip | |
* dispextern.h (face_at_buffer_position, face_for_overlay_string)
(face_at_string_position):
* xfaces.c (face_at_buffer_position, face_for_overlay_string)
(face_at_string_position):
* xdisp.c (display_string, next_overlay_change):
* buffer.h (overlays_at):
* buffer.c (overlays_at): Use EMACS_INT for buffer positions.
Update callers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/buffer.c | 16 | ||||
| -rw-r--r-- | src/buffer.h | 4 | ||||
| -rw-r--r-- | src/dispextern.h | 19 | ||||
| -rw-r--r-- | src/font.c | 2 | ||||
| -rw-r--r-- | src/fontset.c | 2 | ||||
| -rw-r--r-- | src/msdos.c | 4 | ||||
| -rw-r--r-- | src/term.c | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 32 | ||||
| -rw-r--r-- | src/xfaces.c | 24 |
10 files changed, 69 insertions, 49 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f9fdb60db76..2e81f6dcfb7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * dispextern.h (face_at_buffer_position, face_for_overlay_string) | ||
| 4 | (face_at_string_position): | ||
| 5 | * xfaces.c (face_at_buffer_position, face_for_overlay_string) | ||
| 6 | (face_at_string_position): | ||
| 7 | * xdisp.c (display_string, next_overlay_change): | ||
| 8 | * buffer.h (overlays_at): | ||
| 9 | * buffer.c (overlays_at): Use EMACS_INT for buffer positions. | ||
| 10 | Update callers. | ||
| 11 | |||
| 1 | 2008-02-26 Chong Yidong <cyd@stupidchicken.com> | 12 | 2008-02-26 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 13 | ||
| 3 | * editfns.c (Fformat): Doc fix. | 14 | * editfns.c (Fformat): Doc fix. |
diff --git a/src/buffer.c b/src/buffer.c index efcaafb9507..366f02a6378 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2691,8 +2691,8 @@ overlays_at (pos, extend, vec_ptr, len_ptr, next_ptr, prev_ptr, change_req) | |||
| 2691 | int extend; | 2691 | int extend; |
| 2692 | Lisp_Object **vec_ptr; | 2692 | Lisp_Object **vec_ptr; |
| 2693 | int *len_ptr; | 2693 | int *len_ptr; |
| 2694 | int *next_ptr; | 2694 | EMACS_INT *next_ptr; |
| 2695 | int *prev_ptr; | 2695 | EMACS_INT *prev_ptr; |
| 2696 | int change_req; | 2696 | int change_req; |
| 2697 | { | 2697 | { |
| 2698 | Lisp_Object overlay, start, end; | 2698 | Lisp_Object overlay, start, end; |
| @@ -4097,7 +4097,7 @@ DEFUN ("overlays-at", Foverlays_at, Soverlays_at, 1, 1, 0, | |||
| 4097 | /* Put all the overlays we want in a vector in overlay_vec. | 4097 | /* Put all the overlays we want in a vector in overlay_vec. |
| 4098 | Store the length in len. */ | 4098 | Store the length in len. */ |
| 4099 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, | 4099 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 4100 | (int *) 0, (int *) 0, 0); | 4100 | (EMACS_INT *) 0, (EMACS_INT *) 0, 0); |
| 4101 | 4101 | ||
| 4102 | /* Make a list of them all. */ | 4102 | /* Make a list of them all. */ |
| 4103 | result = Flist (noverlays, overlay_vec); | 4103 | result = Flist (noverlays, overlay_vec); |
| @@ -4147,7 +4147,7 @@ the value is (point-max). */) | |||
| 4147 | Lisp_Object pos; | 4147 | Lisp_Object pos; |
| 4148 | { | 4148 | { |
| 4149 | int noverlays; | 4149 | int noverlays; |
| 4150 | int endpos; | 4150 | EMACS_INT endpos; |
| 4151 | Lisp_Object *overlay_vec; | 4151 | Lisp_Object *overlay_vec; |
| 4152 | int len; | 4152 | int len; |
| 4153 | int i; | 4153 | int i; |
| @@ -4161,14 +4161,14 @@ the value is (point-max). */) | |||
| 4161 | Store the length in len. | 4161 | Store the length in len. |
| 4162 | endpos gets the position where the next overlay starts. */ | 4162 | endpos gets the position where the next overlay starts. */ |
| 4163 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, | 4163 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 4164 | &endpos, (int *) 0, 1); | 4164 | &endpos, (EMACS_INT *) 0, 1); |
| 4165 | 4165 | ||
| 4166 | /* If any of these overlays ends before endpos, | 4166 | /* If any of these overlays ends before endpos, |
| 4167 | use its ending point instead. */ | 4167 | use its ending point instead. */ |
| 4168 | for (i = 0; i < noverlays; i++) | 4168 | for (i = 0; i < noverlays; i++) |
| 4169 | { | 4169 | { |
| 4170 | Lisp_Object oend; | 4170 | Lisp_Object oend; |
| 4171 | int oendpos; | 4171 | EMACS_INT oendpos; |
| 4172 | 4172 | ||
| 4173 | oend = OVERLAY_END (overlay_vec[i]); | 4173 | oend = OVERLAY_END (overlay_vec[i]); |
| 4174 | oendpos = OVERLAY_POSITION (oend); | 4174 | oendpos = OVERLAY_POSITION (oend); |
| @@ -4189,7 +4189,7 @@ the value is (point-min). */) | |||
| 4189 | Lisp_Object pos; | 4189 | Lisp_Object pos; |
| 4190 | { | 4190 | { |
| 4191 | int noverlays; | 4191 | int noverlays; |
| 4192 | int prevpos; | 4192 | EMACS_INT prevpos; |
| 4193 | Lisp_Object *overlay_vec; | 4193 | Lisp_Object *overlay_vec; |
| 4194 | int len; | 4194 | int len; |
| 4195 | 4195 | ||
| @@ -4207,7 +4207,7 @@ the value is (point-min). */) | |||
| 4207 | Store the length in len. | 4207 | Store the length in len. |
| 4208 | prevpos gets the position of the previous change. */ | 4208 | prevpos gets the position of the previous change. */ |
| 4209 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, | 4209 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 4210 | (int *) 0, &prevpos, 1); | 4210 | (EMACS_INT *) 0, &prevpos, 1); |
| 4211 | 4211 | ||
| 4212 | xfree (overlay_vec); | 4212 | xfree (overlay_vec); |
| 4213 | return make_number (prevpos); | 4213 | return make_number (prevpos); |
diff --git a/src/buffer.h b/src/buffer.h index 54c32d9b9b2..c5544e7314a 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -834,7 +834,9 @@ extern struct buffer buffer_local_symbols; | |||
| 834 | extern void delete_all_overlays P_ ((struct buffer *)); | 834 | extern void delete_all_overlays P_ ((struct buffer *)); |
| 835 | extern void reset_buffer P_ ((struct buffer *)); | 835 | extern void reset_buffer P_ ((struct buffer *)); |
| 836 | extern void evaporate_overlays P_ ((EMACS_INT)); | 836 | extern void evaporate_overlays P_ ((EMACS_INT)); |
| 837 | extern int overlays_at P_ ((EMACS_INT, int, Lisp_Object **, int *, int *, int *, int)); | 837 | extern int overlays_at P_ ((EMACS_INT pos, int extend, Lisp_Object **vec_ptr, |
| 838 | int *len_ptr, EMACS_INT *next_ptr, | ||
| 839 | EMACS_INT *prev_ptr, int change_req)); | ||
| 838 | extern int sort_overlays P_ ((Lisp_Object *, int, struct window *)); | 840 | extern int sort_overlays P_ ((Lisp_Object *, int, struct window *)); |
| 839 | extern void recenter_overlay_lists P_ ((struct buffer *, EMACS_INT)); | 841 | extern void recenter_overlay_lists P_ ((struct buffer *, EMACS_INT)); |
| 840 | extern int overlay_strings P_ ((EMACS_INT, struct window *, unsigned char **)); | 842 | extern int overlay_strings P_ ((EMACS_INT, struct window *, unsigned char **)); |
diff --git a/src/dispextern.h b/src/dispextern.h index 652980be783..642bd97d6a2 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -2882,13 +2882,18 @@ int lookup_derived_face P_ ((struct frame *, Lisp_Object, int, int)); | |||
| 2882 | void init_frame_faces P_ ((struct frame *)); | 2882 | void init_frame_faces P_ ((struct frame *)); |
| 2883 | void free_frame_faces P_ ((struct frame *)); | 2883 | void free_frame_faces P_ ((struct frame *)); |
| 2884 | void recompute_basic_faces P_ ((struct frame *)); | 2884 | void recompute_basic_faces P_ ((struct frame *)); |
| 2885 | int face_at_buffer_position P_ ((struct window *, int, int, int, int *, | 2885 | int face_at_buffer_position P_ ((struct window *w, EMACS_INT pos, |
| 2886 | int, int)); | 2886 | EMACS_INT region_beg, EMACS_INT region_end, |
| 2887 | int face_for_overlay_string P_ ((struct window *, int, int, | 2887 | EMACS_INT *endptr, EMACS_INT limit, |
| 2888 | int, int *, | 2888 | int mouse)); |
| 2889 | int, int, Lisp_Object)); | 2889 | int face_for_overlay_string P_ ((struct window *w, EMACS_INT pos, |
| 2890 | int face_at_string_position P_ ((struct window *, Lisp_Object, int, int, int, | 2890 | EMACS_INT region_beg, EMACS_INT region_end, |
| 2891 | int, int *, enum face_id, int)); | 2891 | EMACS_INT *endptr, EMACS_INT limit, |
| 2892 | int mouse, Lisp_Object overlay)); | ||
| 2893 | int face_at_string_position P_ ((struct window *w, Lisp_Object string, | ||
| 2894 | EMACS_INT pos, EMACS_INT bufpos, | ||
| 2895 | EMACS_INT region_beg, EMACS_INT region_end, | ||
| 2896 | EMACS_INT *endptr, enum face_id, int mouse)); | ||
| 2892 | int merge_faces P_ ((struct frame *, Lisp_Object, int, int)); | 2897 | int merge_faces P_ ((struct frame *, Lisp_Object, int, int)); |
| 2893 | int compute_char_face P_ ((struct frame *, int, Lisp_Object)); | 2898 | int compute_char_face P_ ((struct frame *, int, Lisp_Object)); |
| 2894 | void free_all_realized_faces P_ ((Lisp_Object)); | 2899 | void free_all_realized_faces P_ ((Lisp_Object)); |
diff --git a/src/font.c b/src/font.c index 754b47ecbe0..ce040fe7fd7 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -3138,7 +3138,7 @@ font_at (c, pos, face, w, string) | |||
| 3138 | if (! face) | 3138 | if (! face) |
| 3139 | { | 3139 | { |
| 3140 | int face_id; | 3140 | int face_id; |
| 3141 | int endptr; | 3141 | EMACS_INT endptr; |
| 3142 | 3142 | ||
| 3143 | if (STRINGP (string)) | 3143 | if (STRINGP (string)) |
| 3144 | face_id = face_at_string_position (w, string, pos, 0, -1, -1, &endptr, | 3144 | face_id = face_at_string_position (w, string, pos, 0, -1, -1, &endptr, |
diff --git a/src/fontset.c b/src/fontset.c index bd4553bc481..7e68a72b840 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -2025,7 +2025,7 @@ DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0, | |||
| 2025 | (position, ch) | 2025 | (position, ch) |
| 2026 | Lisp_Object position, ch; | 2026 | Lisp_Object position, ch; |
| 2027 | { | 2027 | { |
| 2028 | int pos, pos_byte, dummy; | 2028 | EMACS_INT pos, pos_byte, dummy; |
| 2029 | int face_id; | 2029 | int face_id; |
| 2030 | int c; | 2030 | int c; |
| 2031 | struct frame *f; | 2031 | struct frame *f; |
diff --git a/src/msdos.c b/src/msdos.c index e015942779f..b5418bab639 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1645,7 +1645,7 @@ IT_note_mouse_highlight (struct frame *f, int x, int y) | |||
| 1645 | /* Find the range of text around this char that | 1645 | /* Find the range of text around this char that |
| 1646 | should be active. */ | 1646 | should be active. */ |
| 1647 | Lisp_Object before, after; | 1647 | Lisp_Object before, after; |
| 1648 | int ignore; | 1648 | EMACS_INT ignore; |
| 1649 | 1649 | ||
| 1650 | before = Foverlay_start (overlay); | 1650 | before = Foverlay_start (overlay); |
| 1651 | after = Foverlay_end (overlay); | 1651 | after = Foverlay_end (overlay); |
| @@ -1672,7 +1672,7 @@ IT_note_mouse_highlight (struct frame *f, int x, int y) | |||
| 1672 | /* Find the range of text around this char that | 1672 | /* Find the range of text around this char that |
| 1673 | should be active. */ | 1673 | should be active. */ |
| 1674 | Lisp_Object before, after, beginning, end; | 1674 | Lisp_Object before, after, beginning, end; |
| 1675 | int ignore; | 1675 | EMACS_INT ignore; |
| 1676 | 1676 | ||
| 1677 | beginning = Fmarker_position (w->start); | 1677 | beginning = Fmarker_position (w->start); |
| 1678 | XSETINT (end, (BUF_Z (XBUFFER (w->buffer)) | 1678 | XSETINT (end, (BUF_Z (XBUFFER (w->buffer)) |
diff --git a/src/term.c b/src/term.c index 1613223b97b..6c236d1b636 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2775,7 +2775,7 @@ term_mouse_highlight (struct frame *f, int x, int y) | |||
| 2775 | /* Find the range of text around this char that | 2775 | /* Find the range of text around this char that |
| 2776 | should be active. */ | 2776 | should be active. */ |
| 2777 | Lisp_Object before, after; | 2777 | Lisp_Object before, after; |
| 2778 | int ignore; | 2778 | EMACS_INT ignore; |
| 2779 | 2779 | ||
| 2780 | 2780 | ||
| 2781 | before = Foverlay_start (overlay); | 2781 | before = Foverlay_start (overlay); |
| @@ -2804,7 +2804,7 @@ term_mouse_highlight (struct frame *f, int x, int y) | |||
| 2804 | /* Find the range of text around this char that | 2804 | /* Find the range of text around this char that |
| 2805 | should be active. */ | 2805 | should be active. */ |
| 2806 | Lisp_Object before, after, beginning, end; | 2806 | Lisp_Object before, after, beginning, end; |
| 2807 | int ignore; | 2807 | EMACS_INT ignore; |
| 2808 | 2808 | ||
| 2809 | beginning = Fmarker_position (w->start); | 2809 | beginning = Fmarker_position (w->start); |
| 2810 | XSETINT (end, (BUF_Z (b) - XFASTINT (w->window_end_pos))); | 2810 | XSETINT (end, (BUF_Z (b) - XFASTINT (w->window_end_pos))); |
diff --git a/src/xdisp.c b/src/xdisp.c index dd9036853ad..6876f16d45e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -922,7 +922,7 @@ static char *decode_mode_spec P_ ((struct window *, int, int, int, int *, | |||
| 922 | static void display_menu_bar P_ ((struct window *)); | 922 | static void display_menu_bar P_ ((struct window *)); |
| 923 | static int display_count_lines P_ ((int, int, int, int, int *)); | 923 | static int display_count_lines P_ ((int, int, int, int, int *)); |
| 924 | static int display_string P_ ((unsigned char *, Lisp_Object, Lisp_Object, | 924 | static int display_string P_ ((unsigned char *, Lisp_Object, Lisp_Object, |
| 925 | int, int, struct it *, int, int, int, int)); | 925 | EMACS_INT, EMACS_INT, struct it *, int, int, int, int)); |
| 926 | static void compute_line_metrics P_ ((struct it *)); | 926 | static void compute_line_metrics P_ ((struct it *)); |
| 927 | static void run_redisplay_end_trigger_hook P_ ((struct it *)); | 927 | static void run_redisplay_end_trigger_hook P_ ((struct it *)); |
| 928 | static int get_overlay_strings P_ ((struct it *, int)); | 928 | static int get_overlay_strings P_ ((struct it *, int)); |
| @@ -964,7 +964,7 @@ static void compute_stop_pos P_ ((struct it *)); | |||
| 964 | static void compute_string_pos P_ ((struct text_pos *, struct text_pos, | 964 | static void compute_string_pos P_ ((struct text_pos *, struct text_pos, |
| 965 | Lisp_Object)); | 965 | Lisp_Object)); |
| 966 | static int face_before_or_after_it_pos P_ ((struct it *, int)); | 966 | static int face_before_or_after_it_pos P_ ((struct it *, int)); |
| 967 | static int next_overlay_change P_ ((int)); | 967 | static EMACS_INT next_overlay_change P_ ((EMACS_INT)); |
| 968 | static int handle_single_display_spec P_ ((struct it *, Lisp_Object, | 968 | static int handle_single_display_spec P_ ((struct it *, Lisp_Object, |
| 969 | Lisp_Object, Lisp_Object, | 969 | Lisp_Object, Lisp_Object, |
| 970 | struct text_pos *, int)); | 970 | struct text_pos *, int)); |
| @@ -3224,9 +3224,9 @@ compute_stop_pos (it) | |||
| 3224 | follows. This is like `next-overlay-change' but doesn't use | 3224 | follows. This is like `next-overlay-change' but doesn't use |
| 3225 | xmalloc. */ | 3225 | xmalloc. */ |
| 3226 | 3226 | ||
| 3227 | static int | 3227 | static EMACS_INT |
| 3228 | next_overlay_change (pos) | 3228 | next_overlay_change (pos) |
| 3229 | int pos; | 3229 | EMACS_INT pos; |
| 3230 | { | 3230 | { |
| 3231 | int noverlays; | 3231 | int noverlays; |
| 3232 | EMACS_INT endpos; | 3232 | EMACS_INT endpos; |
| @@ -3241,7 +3241,7 @@ next_overlay_change (pos) | |||
| 3241 | for (i = 0; i < noverlays; ++i) | 3241 | for (i = 0; i < noverlays; ++i) |
| 3242 | { | 3242 | { |
| 3243 | Lisp_Object oend; | 3243 | Lisp_Object oend; |
| 3244 | int oendpos; | 3244 | EMACS_INT oendpos; |
| 3245 | 3245 | ||
| 3246 | oend = OVERLAY_END (overlays[i]); | 3246 | oend = OVERLAY_END (overlays[i]); |
| 3247 | oendpos = OVERLAY_POSITION (oend); | 3247 | oendpos = OVERLAY_POSITION (oend); |
| @@ -3353,7 +3353,8 @@ static enum prop_handled | |||
| 3353 | handle_face_prop (it) | 3353 | handle_face_prop (it) |
| 3354 | struct it *it; | 3354 | struct it *it; |
| 3355 | { | 3355 | { |
| 3356 | int new_face_id, next_stop; | 3356 | int new_face_id; |
| 3357 | EMACS_INT next_stop; | ||
| 3357 | 3358 | ||
| 3358 | if (!STRINGP (it->string)) | 3359 | if (!STRINGP (it->string)) |
| 3359 | { | 3360 | { |
| @@ -3521,7 +3522,7 @@ face_before_or_after_it_pos (it, before_p) | |||
| 3521 | int before_p; | 3522 | int before_p; |
| 3522 | { | 3523 | { |
| 3523 | int face_id, limit; | 3524 | int face_id, limit; |
| 3524 | int next_check_charpos; | 3525 | EMACS_INT next_check_charpos; |
| 3525 | struct text_pos pos; | 3526 | struct text_pos pos; |
| 3526 | 3527 | ||
| 3527 | xassert (it->s == NULL); | 3528 | xassert (it->s == NULL); |
| @@ -4743,6 +4744,7 @@ handle_composition_prop (it) | |||
| 4743 | #ifdef USE_FONT_BACKEND | 4744 | #ifdef USE_FONT_BACKEND |
| 4744 | if (composition_table[id]->method == COMPOSITION_WITH_GLYPH_STRING) | 4745 | if (composition_table[id]->method == COMPOSITION_WITH_GLYPH_STRING) |
| 4745 | { | 4746 | { |
| 4747 | /* FIXME: This doesn't do anything!?! */ | ||
| 4746 | Lisp_Object lgstring = AREF (XHASH_TABLE (composition_hash_table) | 4748 | Lisp_Object lgstring = AREF (XHASH_TABLE (composition_hash_table) |
| 4747 | ->key_and_value, | 4749 | ->key_and_value, |
| 4748 | cmp->hash_index * 2); | 4750 | cmp->hash_index * 2); |
| @@ -18482,8 +18484,8 @@ display_string (string, lisp_string, face_string, face_string_pos, | |||
| 18482 | unsigned char *string; | 18484 | unsigned char *string; |
| 18483 | Lisp_Object lisp_string; | 18485 | Lisp_Object lisp_string; |
| 18484 | Lisp_Object face_string; | 18486 | Lisp_Object face_string; |
| 18485 | int face_string_pos; | 18487 | EMACS_INT face_string_pos; |
| 18486 | int start; | 18488 | EMACS_INT start; |
| 18487 | struct it *it; | 18489 | struct it *it; |
| 18488 | int field_width, precision, max_x; | 18490 | int field_width, precision, max_x; |
| 18489 | int multibyte; | 18491 | int multibyte; |
| @@ -18501,7 +18503,7 @@ display_string (string, lisp_string, face_string, face_string_pos, | |||
| 18501 | from LISP_STRING, if that's given. */ | 18503 | from LISP_STRING, if that's given. */ |
| 18502 | if (STRINGP (face_string)) | 18504 | if (STRINGP (face_string)) |
| 18503 | { | 18505 | { |
| 18504 | int endptr; | 18506 | EMACS_INT endptr; |
| 18505 | struct face *face; | 18507 | struct face *face; |
| 18506 | 18508 | ||
| 18507 | it->face_id | 18509 | it->face_id |
| @@ -23078,7 +23080,7 @@ note_mode_line_or_margin_highlight (window, x, y, area) | |||
| 23078 | int gpos; | 23080 | int gpos; |
| 23079 | int gseq_length; | 23081 | int gseq_length; |
| 23080 | int total_pixel_width; | 23082 | int total_pixel_width; |
| 23081 | int ignore; | 23083 | EMACS_INT ignore; |
| 23082 | 23084 | ||
| 23083 | int vpos, hpos; | 23085 | int vpos, hpos; |
| 23084 | 23086 | ||
| @@ -23430,7 +23432,7 @@ note_mouse_highlight (f, x, y) | |||
| 23430 | /* Find the range of text around this char that | 23432 | /* Find the range of text around this char that |
| 23431 | should be active. */ | 23433 | should be active. */ |
| 23432 | Lisp_Object before, after; | 23434 | Lisp_Object before, after; |
| 23433 | int ignore; | 23435 | EMACS_INT ignore; |
| 23434 | 23436 | ||
| 23435 | before = Foverlay_start (overlay); | 23437 | before = Foverlay_start (overlay); |
| 23436 | after = Foverlay_end (overlay); | 23438 | after = Foverlay_end (overlay); |
| @@ -23464,7 +23466,7 @@ note_mouse_highlight (f, x, y) | |||
| 23464 | /* Find the range of text around this char that | 23466 | /* Find the range of text around this char that |
| 23465 | should be active. */ | 23467 | should be active. */ |
| 23466 | Lisp_Object before, after, beginning, end; | 23468 | Lisp_Object before, after, beginning, end; |
| 23467 | int ignore; | 23469 | EMACS_INT ignore; |
| 23468 | 23470 | ||
| 23469 | beginning = Fmarker_position (w->start); | 23471 | beginning = Fmarker_position (w->start); |
| 23470 | end = make_number (BUF_Z (XBUFFER (object)) | 23472 | end = make_number (BUF_Z (XBUFFER (object)) |
| @@ -23504,7 +23506,7 @@ note_mouse_highlight (f, x, y) | |||
| 23504 | else if (!NILP (mouse_face) && STRINGP (object)) | 23506 | else if (!NILP (mouse_face) && STRINGP (object)) |
| 23505 | { | 23507 | { |
| 23506 | Lisp_Object b, e; | 23508 | Lisp_Object b, e; |
| 23507 | int ignore; | 23509 | EMACS_INT ignore; |
| 23508 | 23510 | ||
| 23509 | b = Fprevious_single_property_change (make_number (pos + 1), | 23511 | b = Fprevious_single_property_change (make_number (pos + 1), |
| 23510 | Qmouse_face, | 23512 | Qmouse_face, |
| @@ -23551,7 +23553,7 @@ note_mouse_highlight (f, x, y) | |||
| 23551 | { | 23553 | { |
| 23552 | Lisp_Object before = Foverlay_start (overlay); | 23554 | Lisp_Object before = Foverlay_start (overlay); |
| 23553 | Lisp_Object after = Foverlay_end (overlay); | 23555 | Lisp_Object after = Foverlay_end (overlay); |
| 23554 | int ignore; | 23556 | EMACS_INT ignore; |
| 23555 | 23557 | ||
| 23556 | /* Note that we might not be able to find position | 23558 | /* Note that we might not be able to find position |
| 23557 | BEFORE in the glyph matrix if the overlay is | 23559 | BEFORE in the glyph matrix if the overlay is |
diff --git a/src/xfaces.c b/src/xfaces.c index 897d8383a49..087dc86297a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -8111,10 +8111,10 @@ int | |||
| 8111 | face_at_buffer_position (w, pos, region_beg, region_end, | 8111 | face_at_buffer_position (w, pos, region_beg, region_end, |
| 8112 | endptr, limit, mouse) | 8112 | endptr, limit, mouse) |
| 8113 | struct window *w; | 8113 | struct window *w; |
| 8114 | int pos; | 8114 | EMACS_INT pos; |
| 8115 | int region_beg, region_end; | 8115 | EMACS_INT region_beg, region_end; |
| 8116 | int *endptr; | 8116 | EMACS_INT *endptr; |
| 8117 | int limit; | 8117 | EMACS_INT limit; |
| 8118 | int mouse; | 8118 | int mouse; |
| 8119 | { | 8119 | { |
| 8120 | struct frame *f = XFRAME (w->frame); | 8120 | struct frame *f = XFRAME (w->frame); |
| @@ -8123,7 +8123,7 @@ face_at_buffer_position (w, pos, region_beg, region_end, | |||
| 8123 | int i, noverlays; | 8123 | int i, noverlays; |
| 8124 | Lisp_Object *overlay_vec; | 8124 | Lisp_Object *overlay_vec; |
| 8125 | Lisp_Object frame; | 8125 | Lisp_Object frame; |
| 8126 | int endpos; | 8126 | EMACS_INT endpos; |
| 8127 | Lisp_Object propname = mouse ? Qmouse_face : Qface; | 8127 | Lisp_Object propname = mouse ? Qmouse_face : Qface; |
| 8128 | Lisp_Object limit1, end; | 8128 | Lisp_Object limit1, end; |
| 8129 | struct face *default_face; | 8129 | struct face *default_face; |
| @@ -8216,10 +8216,10 @@ int | |||
| 8216 | face_for_overlay_string (w, pos, region_beg, region_end, | 8216 | face_for_overlay_string (w, pos, region_beg, region_end, |
| 8217 | endptr, limit, mouse, overlay) | 8217 | endptr, limit, mouse, overlay) |
| 8218 | struct window *w; | 8218 | struct window *w; |
| 8219 | int pos; | 8219 | EMACS_INT pos; |
| 8220 | int region_beg, region_end; | 8220 | EMACS_INT region_beg, region_end; |
| 8221 | int *endptr; | 8221 | EMACS_INT *endptr; |
| 8222 | int limit; | 8222 | EMACS_INT limit; |
| 8223 | int mouse; | 8223 | int mouse; |
| 8224 | Lisp_Object overlay; | 8224 | Lisp_Object overlay; |
| 8225 | { | 8225 | { |
| @@ -8310,9 +8310,9 @@ face_at_string_position (w, string, pos, bufpos, region_beg, | |||
| 8310 | region_end, endptr, base_face_id, mouse_p) | 8310 | region_end, endptr, base_face_id, mouse_p) |
| 8311 | struct window *w; | 8311 | struct window *w; |
| 8312 | Lisp_Object string; | 8312 | Lisp_Object string; |
| 8313 | int pos, bufpos; | 8313 | EMACS_INT pos, bufpos; |
| 8314 | int region_beg, region_end; | 8314 | EMACS_INT region_beg, region_end; |
| 8315 | int *endptr; | 8315 | EMACS_INT *endptr; |
| 8316 | enum face_id base_face_id; | 8316 | enum face_id base_face_id; |
| 8317 | int mouse_p; | 8317 | int mouse_p; |
| 8318 | { | 8318 | { |