diff options
| author | Richard M. Stallman | 1997-05-08 05:48:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-08 05:48:01 +0000 |
| commit | 293a54ce2cc9fd90d6a5d37d358014fc7e1ee071 (patch) | |
| tree | fbd48885bab7bc1e5ae6ef9619489dd58f87d5ed | |
| parent | a2185576ed975b626986c3c7b6056d2aa49f1f70 (diff) | |
| download | emacs-293a54ce2cc9fd90d6a5d37d358014fc7e1ee071.tar.gz emacs-293a54ce2cc9fd90d6a5d37d358014fc7e1ee071.zip | |
(mark_window_display_accurate, redisplay_internal):
Test highlight_nonselected_windows.
(display_text_line): Likewise (in more places).
(syms_of_xdisp): Initialize highlight_nonselected_windows to 0.
| -rw-r--r-- | src/xdisp.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 37cf8f18208..91036b56fa0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1086,7 +1086,8 @@ redisplay_internal (preserve_echo_area) | |||
| 1086 | then we can't just move the cursor. */ | 1086 | then we can't just move the cursor. */ |
| 1087 | else if (! (!NILP (Vtransient_mark_mode) | 1087 | else if (! (!NILP (Vtransient_mark_mode) |
| 1088 | && !NILP (current_buffer->mark_active)) | 1088 | && !NILP (current_buffer->mark_active)) |
| 1089 | && w == XWINDOW (current_buffer->last_selected_window) | 1089 | && (w == XWINDOW (current_buffer->last_selected_window) |
| 1090 | || highlight_nonselected_windows) | ||
| 1090 | && NILP (w->region_showing) | 1091 | && NILP (w->region_showing) |
| 1091 | && !cursor_in_echo_area) | 1092 | && !cursor_in_echo_area) |
| 1092 | { | 1093 | { |
| @@ -1274,7 +1275,8 @@ update: | |||
| 1274 | /* Record if we are showing a region, so can make sure to | 1275 | /* Record if we are showing a region, so can make sure to |
| 1275 | update it fully at next redisplay. */ | 1276 | update it fully at next redisplay. */ |
| 1276 | w->region_showing = (!NILP (Vtransient_mark_mode) | 1277 | w->region_showing = (!NILP (Vtransient_mark_mode) |
| 1277 | && w == XWINDOW (current_buffer->last_selected_window) | 1278 | && (w == XWINDOW (current_buffer->last_selected_window) |
| 1279 | || highlight_nonselected_windows) | ||
| 1278 | && !NILP (XBUFFER (w->buffer)->mark_active) | 1280 | && !NILP (XBUFFER (w->buffer)->mark_active) |
| 1279 | ? Fmarker_position (XBUFFER (w->buffer)->mark) | 1281 | ? Fmarker_position (XBUFFER (w->buffer)->mark) |
| 1280 | : Qnil); | 1282 | : Qnil); |
| @@ -1356,7 +1358,8 @@ mark_window_display_accurate (window, flag) | |||
| 1356 | /* Record if we are showing a region, so can make sure to | 1358 | /* Record if we are showing a region, so can make sure to |
| 1357 | update it fully at next redisplay. */ | 1359 | update it fully at next redisplay. */ |
| 1358 | w->region_showing = (!NILP (Vtransient_mark_mode) | 1360 | w->region_showing = (!NILP (Vtransient_mark_mode) |
| 1359 | && w == XWINDOW (current_buffer->last_selected_window) | 1361 | && (w == XWINDOW (current_buffer->last_selected_window) |
| 1362 | || highlight_nonselected_windows) | ||
| 1360 | && !NILP (XBUFFER (w->buffer)->mark_active) | 1363 | && !NILP (XBUFFER (w->buffer)->mark_active) |
| 1361 | ? Fmarker_position (XBUFFER (w->buffer)->mark) | 1364 | ? Fmarker_position (XBUFFER (w->buffer)->mark) |
| 1362 | : Qnil); | 1365 | : Qnil); |
| @@ -2782,7 +2785,8 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 2782 | /* 1 if we should highlight the region. */ | 2785 | /* 1 if we should highlight the region. */ |
| 2783 | int highlight_region | 2786 | int highlight_region |
| 2784 | = (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active) | 2787 | = (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active) |
| 2785 | && XWINDOW (current_buffer->last_selected_window) == w); | 2788 | && (XWINDOW (current_buffer->last_selected_window) == w |
| 2789 | || highlight_nonselected_windows)); | ||
| 2786 | int region_beg, region_end; | 2790 | int region_beg, region_end; |
| 2787 | 2791 | ||
| 2788 | int selective = (INTEGERP (current_buffer->selective_display) | 2792 | int selective = (INTEGERP (current_buffer->selective_display) |
| @@ -4903,7 +4907,7 @@ of the top or bottom of the window."); | |||
| 4903 | 4907 | ||
| 4904 | DEFVAR_BOOL ("highlight-nonselected-windows", &highlight_nonselected_windows, | 4908 | DEFVAR_BOOL ("highlight-nonselected-windows", &highlight_nonselected_windows, |
| 4905 | "*Non-nil means highlight region even in nonselected windows."); | 4909 | "*Non-nil means highlight region even in nonselected windows."); |
| 4906 | highlight_nonselected_windows = 1; | 4910 | highlight_nonselected_windows = 0; |
| 4907 | 4911 | ||
| 4908 | DEFVAR_BOOL ("multiple-frames", &multiple_frames, | 4912 | DEFVAR_BOOL ("multiple-frames", &multiple_frames, |
| 4909 | "Non-nil if more than one frame is visible on this display.\n\ | 4913 | "Non-nil if more than one frame is visible on this display.\n\ |