diff options
| author | Richard M. Stallman | 1993-05-15 18:44:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-15 18:44:46 +0000 |
| commit | de83c3149efd239c34daf706e795aad397454d64 (patch) | |
| tree | a08cee18e68f4410479becbae5c02d2bb768025e | |
| parent | 31ba9d398ecd705ef9202b308fb76b7a90f12245 (diff) | |
| download | emacs-de83c3149efd239c34daf706e795aad397454d64.tar.gz emacs-de83c3149efd239c34daf706e795aad397454d64.zip | |
(direct_output_forward_char): Just give up
if region is being highlighted.
(direct_output_for_insert): Pass those args.
| -rw-r--r-- | src/dispnew.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 963cc22cf44..30e1706a720 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -878,7 +878,7 @@ direct_output_for_insert (g) | |||
| 878 | { | 878 | { |
| 879 | #ifdef HAVE_X_WINDOWS | 879 | #ifdef HAVE_X_WINDOWS |
| 880 | int dummy; | 880 | int dummy; |
| 881 | int face = compute_char_face (frame, w, point, &dummy); | 881 | int face = compute_char_face (frame, w, point, -1, -1, &dummy); |
| 882 | #else | 882 | #else |
| 883 | int face = 0; | 883 | int face = 0; |
| 884 | #endif | 884 | #endif |
| @@ -920,6 +920,10 @@ direct_output_forward_char (n) | |||
| 920 | || cursor_in_echo_area) | 920 | || cursor_in_echo_area) |
| 921 | return 0; | 921 | return 0; |
| 922 | 922 | ||
| 923 | /* Can't use direct output if highlighting a region. */ | ||
| 924 | if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active)) | ||
| 925 | return 0; | ||
| 926 | |||
| 923 | FRAME_CURSOR_X (frame) += n; | 927 | FRAME_CURSOR_X (frame) += n; |
| 924 | XFASTINT (w->last_point_x) = FRAME_CURSOR_X (frame); | 928 | XFASTINT (w->last_point_x) = FRAME_CURSOR_X (frame); |
| 925 | XFASTINT (w->last_point) = point; | 929 | XFASTINT (w->last_point) = point; |