X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/565620a54d14465fe7c2fe912a41eb7a36d93d10..254277e15d6906634686a682bfc7a163b20d7be5:/src/dispnew.c diff --git a/src/dispnew.c b/src/dispnew.c index 62bd1d0e6d..0faabda929 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -318,7 +318,7 @@ make_frame_glyphs (frame, empty) return new; } -static void +void free_frame_glyphs (frame, glyphs) FRAME_PTR frame; struct frame_glyphs *glyphs; @@ -851,10 +851,10 @@ preserve_other_columns (w) bcopy (current_frame->glyphs[vpos], desired_frame->glyphs[vpos], - start * sizeof (current_frame->glyphs[vpos])); + start * sizeof (current_frame->glyphs[vpos][0])); bcopy (current_frame->charstarts[vpos], desired_frame->charstarts[vpos], - start * sizeof (current_frame->charstarts[vpos])); + start * sizeof (current_frame->charstarts[vpos][0])); len = min (start, current_frame->used[vpos]); if (desired_frame->used[vpos] < len) desired_frame->used[vpos] = len; @@ -871,11 +871,11 @@ preserve_other_columns (w) bcopy (current_frame->glyphs[vpos] + end, desired_frame->glyphs[vpos] + end, ((current_frame->used[vpos] - end) - * sizeof (current_frame->glyphs[vpos]))); + * sizeof (current_frame->glyphs[vpos][0]))); bcopy (current_frame->charstarts[vpos] + end, desired_frame->charstarts[vpos] + end, ((current_frame->used[vpos] - end) - * sizeof (current_frame->charstarts[vpos]))); + * sizeof (current_frame->charstarts[vpos][0]))); desired_frame->used[vpos] = current_frame->used[vpos]; } } @@ -1077,7 +1077,7 @@ direct_output_for_insert (g) At the moment we only lose at end of line or end of buffer and only with faces that have some background */ /* Instead of wasting time, give up if character has any text properties */ - || ! NILP (Ftext_properties_at (XFASTINT (point - 1), Qnil)) + || ! NILP (Ftext_properties_at (make_number (point - 1), Qnil)) #endif /* Give up if w is minibuffer and a message is being displayed there */ @@ -1085,9 +1085,12 @@ direct_output_for_insert (g) return 0; { + int face = 0; #ifdef HAVE_X_WINDOWS int dummy; - int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point); + + if (FRAME_X_P (frame)) + face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point, 0); #endif current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); current_frame->charstarts[vpos][hpos] = point - 1; @@ -1120,7 +1123,7 @@ direct_output_forward_char (n) { register FRAME_PTR frame = selected_frame; register struct window *w = XWINDOW (selected_window); - int position; + Lisp_Object position; int hpos = FRAME_CURSOR_X (frame); /* Give up if in truncated text at end of line. */ @@ -2466,7 +2469,7 @@ syms_of_display () staticpro (&frame_and_buffer_state); DEFVAR_INT ("baud-rate", &baud_rate, - "The output baud rate of the terminal.\n\ + "*The output baud rate of the terminal.\n\ On most systems, changing this value will affect the amount of padding\n\ and the other strategic decisions made during redisplay."); DEFVAR_BOOL ("inverse-video", &inverse_video,