comparison src/xdisp.c @ 3265:80f57ae8d44e

(syms_of_xdisp): Make highlight-nonselected-windows Lisp var. (display_text_line): Obey it.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 May 1993 20:39:19 +0000
parents 6b47ab3b2a88
children 1173bc4814da
comparison
equal deleted inserted replaced
3264:eff921d7bde6 3265:80f57ae8d44e
89 /* Values of those variables at last redisplay. */ 89 /* Values of those variables at last redisplay. */
90 static Lisp_Object last_arrow_position, last_arrow_string; 90 static Lisp_Object last_arrow_position, last_arrow_string;
91 91
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
95 /* Nonzero means highlight the region even in nonselected windows. */
96 static int highlight_nonselected_windows;
94 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;
98 101
1722 get_display_line (f, vpos, XFASTINT (w->left)); 1725 get_display_line (f, vpos, XFASTINT (w->left));
1723 if (tab_width <= 0 || tab_width > 1000) tab_width = 8; 1726 if (tab_width <= 0 || tab_width > 1000) tab_width = 8;
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)
1732 { 1736 {
1733 region_end = region_beg; 1737 region_end = region_beg;
2834 mode_line_inverse_video = 1; 2838 mode_line_inverse_video = 1;
2835 2839
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 */
2842 init_xdisp () 2850 init_xdisp ()
2843 { 2851 {