diff options
| author | Kim F. Storm | 2001-11-16 13:09:11 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2001-11-16 13:09:11 +0000 |
| commit | b46952ae88a26b5a7256557ad781afa792566869 (patch) | |
| tree | bbc4179f3ed42725f0df44f68cf7e9c3fbd44cc6 /src | |
| parent | 81d189fdcb346703dd2a264200ab3c24f0a8a72a (diff) | |
| download | emacs-b46952ae88a26b5a7256557ad781afa792566869.tar.gz emacs-b46952ae88a26b5a7256557ad781afa792566869.zip | |
Fringe cleanup.
Comment fixes. Use renamed symbols.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 3c6541d6493..0922084f560 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -821,7 +821,7 @@ window_text_bottom_y (w) | |||
| 821 | 821 | ||
| 822 | 822 | ||
| 823 | /* Return the pixel width of display area AREA of window W. AREA < 0 | 823 | /* Return the pixel width of display area AREA of window W. AREA < 0 |
| 824 | means return the total width of W, not including bitmap areas to | 824 | means return the total width of W, not including fringes to |
| 825 | the left and right of the window. */ | 825 | the left and right of the window. */ |
| 826 | 826 | ||
| 827 | INLINE int | 827 | INLINE int |
| @@ -834,7 +834,7 @@ window_box_width (w, area) | |||
| 834 | 834 | ||
| 835 | if (!w->pseudo_window_p) | 835 | if (!w->pseudo_window_p) |
| 836 | { | 836 | { |
| 837 | width -= FRAME_SCROLL_BAR_WIDTH (f) + FRAME_FLAGS_AREA_COLS (f); | 837 | width -= FRAME_SCROLL_BAR_WIDTH (f) + FRAME_FRINGE_COLS (f); |
| 838 | 838 | ||
| 839 | if (area == TEXT_AREA) | 839 | if (area == TEXT_AREA) |
| 840 | { | 840 | { |
| @@ -903,8 +903,7 @@ window_box_height (w) | |||
| 903 | 903 | ||
| 904 | /* Return the frame-relative coordinate of the left edge of display | 904 | /* Return the frame-relative coordinate of the left edge of display |
| 905 | area AREA of window W. AREA < 0 means return the left edge of the | 905 | area AREA of window W. AREA < 0 means return the left edge of the |
| 906 | whole window, to the right of any bitmap area at the left side of | 906 | whole window, to the right of the left fringe of W. */ |
| 907 | W. */ | ||
| 908 | 907 | ||
| 909 | INLINE int | 908 | INLINE int |
| 910 | window_box_left (w, area) | 909 | window_box_left (w, area) |
| @@ -917,7 +916,7 @@ window_box_left (w, area) | |||
| 917 | if (!w->pseudo_window_p) | 916 | if (!w->pseudo_window_p) |
| 918 | { | 917 | { |
| 919 | x += (WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f) | 918 | x += (WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f) |
| 920 | + FRAME_LEFT_FLAGS_AREA_WIDTH (f)); | 919 | + FRAME_LEFT_FRINGE_WIDTH (f)); |
| 921 | 920 | ||
| 922 | if (area == TEXT_AREA) | 921 | if (area == TEXT_AREA) |
| 923 | x += window_box_width (w, LEFT_MARGIN_AREA); | 922 | x += window_box_width (w, LEFT_MARGIN_AREA); |
| @@ -932,8 +931,7 @@ window_box_left (w, area) | |||
| 932 | 931 | ||
| 933 | /* Return the frame-relative coordinate of the right edge of display | 932 | /* Return the frame-relative coordinate of the right edge of display |
| 934 | area AREA of window W. AREA < 0 means return the left edge of the | 933 | area AREA of window W. AREA < 0 means return the left edge of the |
| 935 | whole window, to the left of any bitmap area at the right side of | 934 | whole window, to the left of the right fringe of W. */ |
| 936 | W. */ | ||
| 937 | 935 | ||
| 938 | INLINE int | 936 | INLINE int |
| 939 | window_box_right (w, area) | 937 | window_box_right (w, area) |
| @@ -946,7 +944,7 @@ window_box_right (w, area) | |||
| 946 | 944 | ||
| 947 | /* Get the bounding box of the display area AREA of window W, without | 945 | /* Get the bounding box of the display area AREA of window W, without |
| 948 | mode lines, in frame-relative coordinates. AREA < 0 means the | 946 | mode lines, in frame-relative coordinates. AREA < 0 means the |
| 949 | whole window, not including bitmap areas to the left and right of | 947 | whole window, not including the left and right fringes of |
| 950 | the window. Return in *BOX_X and *BOX_Y the frame-relative pixel | 948 | the window. Return in *BOX_X and *BOX_Y the frame-relative pixel |
| 951 | coordinates of the upper-left corner of the box. Return in | 949 | coordinates of the upper-left corner of the box. Return in |
| 952 | *BOX_WIDTH, and *BOX_HEIGHT the pixel width and height of the box. */ | 950 | *BOX_WIDTH, and *BOX_HEIGHT the pixel width and height of the box. */ |
| @@ -970,8 +968,8 @@ window_box (w, area, box_x, box_y, box_width, box_height) | |||
| 970 | 968 | ||
| 971 | 969 | ||
| 972 | /* Get the bounding box of the display area AREA of window W, without | 970 | /* Get the bounding box of the display area AREA of window W, without |
| 973 | mode lines. AREA < 0 means the whole window, not including bitmap | 971 | mode lines. AREA < 0 means the whole window, not including the |
| 974 | areas to the left and right of the window. Return in *TOP_LEFT_X | 972 | left and right fringe of the window. Return in *TOP_LEFT_X |
| 975 | and TOP_LEFT_Y the frame-relative pixel coordinates of the | 973 | and TOP_LEFT_Y the frame-relative pixel coordinates of the |
| 976 | upper-left corner of the box. Return in *BOTTOM_RIGHT_X, and | 974 | upper-left corner of the box. Return in *BOTTOM_RIGHT_X, and |
| 977 | *BOTTOM_RIGHT_Y the coordinates of the bottom-right corner of the | 975 | *BOTTOM_RIGHT_Y the coordinates of the bottom-right corner of the |
| @@ -1593,7 +1591,7 @@ init_iterator (it, w, charpos, bytepos, row, base_face_id) | |||
| 1593 | || !NILP (current_buffer->truncate_lines)); | 1591 | || !NILP (current_buffer->truncate_lines)); |
| 1594 | 1592 | ||
| 1595 | /* Get dimensions of truncation and continuation glyphs. These are | 1593 | /* Get dimensions of truncation and continuation glyphs. These are |
| 1596 | displayed as bitmaps under X, so we don't need them for such | 1594 | displayed as fringe bitmaps under X, so we don't need them for such |
| 1597 | frames. */ | 1595 | frames. */ |
| 1598 | if (!FRAME_WINDOW_P (it->f)) | 1596 | if (!FRAME_WINDOW_P (it->f)) |
| 1599 | { | 1597 | { |
| @@ -13100,7 +13098,7 @@ display_line (it) | |||
| 13100 | && STRINGP (Voverlay_arrow_string) | 13098 | && STRINGP (Voverlay_arrow_string) |
| 13101 | && ! overlay_arrow_seen) | 13099 | && ! overlay_arrow_seen) |
| 13102 | { | 13100 | { |
| 13103 | /* Overlay arrow in window redisplay is a bitmap. */ | 13101 | /* Overlay arrow in window redisplay is a fringe bitmap. */ |
| 13104 | if (!FRAME_WINDOW_P (it->f)) | 13102 | if (!FRAME_WINDOW_P (it->f)) |
| 13105 | { | 13103 | { |
| 13106 | struct glyph_row *arrow_row = get_overlay_arrow_glyph_row (it->w); | 13104 | struct glyph_row *arrow_row = get_overlay_arrow_glyph_row (it->w); |