comparison src/xdisp.c @ 1992:37c45885540a

* xdisp.c (redisplay): Protect calls to request_sigio and unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined Use the term `scroll bar', instead of `scrollbar'. * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed.
author Jim Blandy <jimb@redhat.com>
date Tue, 02 Mar 1993 08:20:23 +0000
parents c5038f47c602
children 32afcdd08efe
comparison
equal deleted inserted replaced
1991:0f88f314fc34 1992:37c45885540a
510 This will be incremented each time such a window is displayed. */ 510 This will be incremented each time such a window is displayed. */
511 buffer_shared = 0; 511 buffer_shared = 0;
512 512
513 FOR_EACH_FRAME (tail, f) 513 FOR_EACH_FRAME (tail, f)
514 { 514 {
515 /* Mark all the scrollbars to be removed; we'll redeem the ones 515 /* Mark all the scroll bars to be removed; we'll redeem the ones
516 we want when we redisplay their windows. */ 516 we want when we redisplay their windows. */
517 if (condemn_scrollbars_hook) 517 if (condemn_scroll_bars_hook)
518 (*condemn_scrollbars_hook) (f); 518 (*condemn_scroll_bars_hook) (f);
519 519
520 if (FRAME_VISIBLE_P (f)) 520 if (FRAME_VISIBLE_P (f))
521 redisplay_windows (FRAME_ROOT_WINDOW (f)); 521 redisplay_windows (FRAME_ROOT_WINDOW (f));
522 522
523 /* Any scrollbars which redisplay_windows should have nuked 523 /* Any scroll bars which redisplay_windows should have nuked
524 should now go away. */ 524 should now go away. */
525 if (judge_scrollbars_hook) 525 if (judge_scroll_bars_hook)
526 (*judge_scrollbars_hook) (f); 526 (*judge_scroll_bars_hook) (f);
527 } 527 }
528 } 528 }
529 else if (FRAME_VISIBLE_P (selected_frame)) 529 else if (FRAME_VISIBLE_P (selected_frame))
530 { 530 {
531 redisplay_window (selected_window, 1); 531 redisplay_window (selected_window, 1);
758 { 758 {
759 if (w == XWINDOW (minibuf_window)) 759 if (w == XWINDOW (minibuf_window))
760 { 760 {
761 if (echo_area_glyphs) 761 if (echo_area_glyphs)
762 /* We've already displayed the echo area glyphs, if any. */ 762 /* We've already displayed the echo area glyphs, if any. */
763 goto finish_scrollbars; 763 goto finish_scroll_bars;
764 } 764 }
765 else 765 else
766 { 766 {
767 /* This is a minibuffer, but it's not the currently active one, so 767 /* This is a minibuffer, but it's not the currently active one, so
768 clear it. */ 768 clear it. */
773 { 773 {
774 get_display_line (f, vpos + i, 0); 774 get_display_line (f, vpos + i, 0);
775 display_string (w, vpos + i, "", 0, 0, 0, width); 775 display_string (w, vpos + i, "", 0, 0, 0, width);
776 } 776 }
777 777
778 goto finish_scrollbars; 778 goto finish_scroll_bars;
779 } 779 }
780 } 780 }
781 781
782 if (update_mode_lines) 782 if (update_mode_lines)
783 w->update_mode_line = Qt; 783 w->update_mode_line = Qt;
977 if ((!NILP (w->update_mode_line) 977 if ((!NILP (w->update_mode_line)
978 || (!just_this_one && width < FRAME_WIDTH (f) - 1)) 978 || (!just_this_one && width < FRAME_WIDTH (f) - 1))
979 && height != XFASTINT (w->height)) 979 && height != XFASTINT (w->height))
980 display_mode_line (w); 980 display_mode_line (w);
981 981
982 finish_scrollbars: 982 finish_scroll_bars:
983 if (FRAME_HAS_VERTICAL_SCROLLBARS (f)) 983 if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
984 { 984 {
985 int start, end, whole; 985 int start, end, whole;
986 986
987 /* Calculate the start and end positions for the current window. 987 /* Calculate the start and end positions for the current window.
988 Note that minibuffers sometimes aren't displaying any text. */ 988 Note that minibuffers sometimes aren't displaying any text. */
996 whole = Z - BEG; 996 whole = Z - BEG;
997 } 997 }
998 else 998 else
999 start = end = whole = 0; 999 start = end = whole = 0;
1000 1000
1001 /* Indicate what this scrollbar ought to be displaying now. */ 1001 /* Indicate what this scroll bar ought to be displaying now. */
1002 (*set_vertical_scrollbar_hook) (w, end - start, whole, start - 1); 1002 (*set_vertical_scroll_bar_hook) (w, end - start, whole, start - 1);
1003 1003
1004 /* Note that we actually used the scrollbar attached to this window, 1004 /* Note that we actually used the scroll bar attached to this window,
1005 so it shouldn't be deleted at the end of redisplay. */ 1005 so it shouldn't be deleted at the end of redisplay. */
1006 (*redeem_scrollbar_hook) (w); 1006 (*redeem_scroll_bar_hook) (w);
1007 } 1007 }
1008 1008
1009 SET_PT (opoint); 1009 SET_PT (opoint);
1010 current_buffer = old; 1010 current_buffer = old;
1011 SET_PT (lpoint); 1011 SET_PT (lpoint);
1759 { 1759 {
1760 endp++; 1760 endp++;
1761 if (p1 < startp) p1 = startp; 1761 if (p1 < startp) p1 = startp;
1762 while (p1 < endp) *p1++ = SPACEGLYPH; 1762 while (p1 < endp) *p1++ = SPACEGLYPH;
1763 1763
1764 /* Don't draw vertical bars if we're using scrollbars. They're 1764 /* Don't draw vertical bars if we're using scroll bars. They're
1765 covered up by the scrollbars, and it's distracting to see 1765 covered up by the scroll bars, and it's distracting to see
1766 them when the scrollbar windows are flickering around to be 1766 them when the scroll bar windows are flickering around to be
1767 reconfigured. */ 1767 reconfigured. */
1768 *p1++ = (FRAME_HAS_VERTICAL_SCROLLBARS (f) 1768 *p1++ = (FRAME_HAS_VERTICAL_SCROLL_BARS (f)
1769 ? ' ' : '|'); 1769 ? ' ' : '|');
1770 } 1770 }
1771 desired_glyphs->used[vpos] = max (desired_glyphs->used[vpos], 1771 desired_glyphs->used[vpos] = max (desired_glyphs->used[vpos],
1772 p1 - desired_glyphs->glyphs[vpos]); 1772 p1 - desired_glyphs->glyphs[vpos]);
1773 desired_glyphs->glyphs[vpos][desired_glyphs->used[vpos]] = 0; 1773 desired_glyphs->glyphs[vpos][desired_glyphs->used[vpos]] = 0;
2256 start = desired_glyphs->glyphs[vpos] + XFASTINT (w->left); 2256 start = desired_glyphs->glyphs[vpos] + XFASTINT (w->left);
2257 end = start + window_width - (truncate != 0); 2257 end = start + window_width - (truncate != 0);
2258 2258
2259 if ((window_width + XFASTINT (w->left)) != FRAME_WIDTH (f)) 2259 if ((window_width + XFASTINT (w->left)) != FRAME_WIDTH (f))
2260 { 2260 {
2261 if (FRAME_HAS_VERTICAL_SCROLLBARS (f)) 2261 if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
2262 { 2262 {
2263 int i; 2263 int i;
2264 2264
2265 for (i = 0; i < VERTICAL_SCROLLBAR_WIDTH; i++) 2265 for (i = 0; i < VERTICAL_SCROLL_BAR_WIDTH; i++)
2266 *end-- = ' '; 2266 *end-- = ' ';
2267 } 2267 }
2268 else 2268 else
2269 *end-- = '|'; 2269 *end-- = '|';
2270 } 2270 }