if region is being highlighted.
(direct_output_for_insert): Pass those args.
{
#ifdef HAVE_X_WINDOWS
int dummy;
- int face = compute_char_face (frame, w, point, &dummy);
+ int face = compute_char_face (frame, w, point, -1, -1, &dummy);
#else
int face = 0;
#endif
|| cursor_in_echo_area)
return 0;
+ /* Can't use direct output if highlighting a region. */
+ if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
+ return 0;
+
FRAME_CURSOR_X (frame) += n;
XFASTINT (w->last_point_x) = FRAME_CURSOR_X (frame);
XFASTINT (w->last_point) = point;