diff options
| author | Richard M. Stallman | 1993-05-29 20:39:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-29 20:39:19 +0000 |
| commit | fba9ce7601d79389928dd715647946aa51b28d6f (patch) | |
| tree | c5c06a9cb3759202706a7d9a1b22b86cd7b54957 /src | |
| parent | 7846ef2c57db1e6d7b4c3cee3c93e7d0f273d3e8 (diff) | |
| download | emacs-fba9ce7601d79389928dd715647946aa51b28d6f.tar.gz emacs-fba9ce7601d79389928dd715647946aa51b28d6f.zip | |
(syms_of_xdisp): Make highlight-nonselected-windows Lisp var.
(display_text_line): Obey it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 762abb65aae..97e9a68e047 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -92,6 +92,9 @@ static Lisp_Object last_arrow_position, last_arrow_string; | |||
| 92 | /* Nonzero if overlay arrow has been displayed once in this window. */ | 92 | /* Nonzero if overlay arrow has been displayed once in this window. */ |
| 93 | static int overlay_arrow_seen; | 93 | static int overlay_arrow_seen; |
| 94 | 94 | ||
| 95 | /* Nonzero means highlight the region even in nonselected windows. */ | ||
| 96 | static int highlight_nonselected_windows; | ||
| 97 | |||
| 95 | /* If cursor motion alone moves point off frame, | 98 | /* If cursor motion alone moves point off frame, |
| 96 | Try scrolling this many lines up or down if that will bring it back. */ | 99 | Try scrolling this many lines up or down if that will bring it back. */ |
| 97 | int scroll_step; | 100 | int scroll_step; |
| @@ -1724,8 +1727,9 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 1724 | 1727 | ||
| 1725 | /* Show where to highlight the region. */ | 1728 | /* Show where to highlight the region. */ |
| 1726 | if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0 | 1729 | if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0 |
| 1727 | /* Highlight only in selected window. */ | 1730 | /* Maybe highlight only in selected window. */ |
| 1728 | && w == XWINDOW (FRAME_SELECTED_WINDOW (f))) | 1731 | && (highlight_nonselected_windows |
| 1732 | || w == XWINDOW (FRAME_SELECTED_WINDOW (f)))) | ||
| 1729 | { | 1733 | { |
| 1730 | region_beg = marker_position (current_buffer->mark); | 1734 | region_beg = marker_position (current_buffer->mark); |
| 1731 | if (PT < region_beg) | 1735 | if (PT < region_beg) |
| @@ -2836,6 +2840,10 @@ If this is zero, point is always centered after it moves off frame."); | |||
| 2836 | DEFVAR_INT ("line-number-display-limit", &line_number_display_limit, | 2840 | DEFVAR_INT ("line-number-display-limit", &line_number_display_limit, |
| 2837 | "*Maximum buffer size for which line number should be displayed."); | 2841 | "*Maximum buffer size for which line number should be displayed."); |
| 2838 | line_number_display_limit = 1000000; | 2842 | line_number_display_limit = 1000000; |
| 2843 | |||
| 2844 | DEFVAR_BOOL ("highlight-nonselected-windows", &highlight_nonselected_windows, | ||
| 2845 | "*Non-nil means highlight region even in nonselected windows."); | ||
| 2846 | highlight_nonselected_windows = 1; | ||
| 2839 | } | 2847 | } |
| 2840 | 2848 | ||
| 2841 | /* initialize the window system */ | 2849 | /* initialize the window system */ |