diff options
author | Karl Heuer <kwzh@gnu.org> | 1997-04-10 22:25:45 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1997-04-10 22:25:45 +0000 |
commit | 26459b28a9dada0a2ee3f84d3a229638c9480d4d (patch) | |
tree | 1abaf550bb99bf2b8dfba9e112372034cd2139a0 | |
parent | e995085f70d60ffcedfc987ec249d4bbd157f250 (diff) | |
download | emacs-26459b28a9dada0a2ee3f84d3a229638c9480d4d.tar.gz |
(construct_menu_click, note_mouse_highlight, fast_find_position):
Fix Lisp_Object/integer confusion.
-rw-r--r-- | src/xterm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index ec8cfc43c05..de6b336db53 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2205,7 +2205,7 @@ construct_menu_click (result, event, f) /* Make the event type no_event; we'll change that when we decide otherwise. */ result->kind = mouse_click; - XSETINT (result->code, event->button - Button1); + result->code = event->button - Button1; result->timestamp = event->time; result->modifiers = (x_x_to_emacs_modifiers (FRAME_X_DISPLAY_INFO (f), event->state) @@ -2305,8 +2305,9 @@ note_mouse_highlight (f, x, y) if (WINDOWP (window) && portion == 0 && row >= 0 && column >= 0 && row < FRAME_HEIGHT (f) && column < FRAME_WIDTH (f) && EQ (w->window_end_valid, w->buffer) - && w->last_modified == BUF_MODIFF (XBUFFER (w->buffer)) - && w->last_overlay_modified == BUF_OVERLAY_MODIFF (XBUFFER (w->buffer))) + && XFASTINT (w->last_modified) == BUF_MODIFF (XBUFFER (w->buffer)) + && (XFASTINT (w->last_overlay_modified) + == BUF_OVERLAY_MODIFF (XBUFFER (w->buffer)))) { int *ptr = FRAME_CURRENT_GLYPHS (f)->charstarts[row]; int i, pos; @@ -2358,7 +2359,7 @@ note_mouse_highlight (f, x, y) /* Put all the overlays we want in a vector in overlay_vec. Store the length in len. */ - noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, + noverlays = overlays_at (pos, 1, &overlay_vec, &len, NULL, NULL); noverlays = sort_overlays (overlay_vec, noverlays, w); @@ -2465,7 +2466,7 @@ fast_find_position (window, pos, columnp, rowp) int i; int row = 0; int left = WINDOW_LEFT_MARGIN (w); - int top = w->top; + int top = XFASTINT (w->top); int height = XFASTINT (w->height) - ! MINI_WINDOW_P (w); int width = window_internal_width (w); int *charstarts; |