aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2001-11-16 13:20:18 +0000
committerKim F. Storm2001-11-16 13:20:18 +0000
commit3f332ef33d1acd081eac9e5bf068048e77ca5e17 (patch)
tree6c2c20144b0d81a5bcdbae42354f2291767931b8
parentf76e1b5f70328303f325f771945b53c475bbcd9f (diff)
downloademacs-3f332ef33d1acd081eac9e5bf068048e77ca5e17.tar.gz
emacs-3f332ef33d1acd081eac9e5bf068048e77ca5e17.zip
Fringe cleanup.
Comment fixes. Use renamed symbols. (fringe_bitmap_type): Renamed from bitmap_type. (NO_FRINGE_BITMAP): Renamed from NO_BITMAP. (x_draw_fringe_bitmap): Renamed from x_draw_bitmap. (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
-rw-r--r--mac/src/macterm.c132
-rw-r--r--src/xterm.c120
2 files changed, 126 insertions, 126 deletions
diff --git a/mac/src/macterm.c b/mac/src/macterm.c
index d84eea70573..72693cba0dd 100644
--- a/mac/src/macterm.c
+++ b/mac/src/macterm.c
@@ -112,11 +112,11 @@ Boston, MA 02111-1307, USA. */
112#define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER)) 112#define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER))
113 113
114 114
115/* Bitmaps for truncated lines. */ 115/* Fringe bitmaps. */
116 116
117enum bitmap_type 117enum fringe_bitmap_type
118{ 118{
119 NO_BITMAP, 119 NO_FRINGE_BITMAP,
120 LEFT_TRUNCATION_BITMAP, 120 LEFT_TRUNCATION_BITMAP,
121 RIGHT_TRUNCATION_BITMAP, 121 RIGHT_TRUNCATION_BITMAP,
122 OVERLAY_ARROW_BITMAP, 122 OVERLAY_ARROW_BITMAP,
@@ -430,13 +430,13 @@ static void x_update_cursor_in_window_tree P_ ((struct window *, int));
430static void x_update_window_cursor P_ ((struct window *, int)); 430static void x_update_window_cursor P_ ((struct window *, int));
431static void x_erase_phys_cursor P_ ((struct window *)); 431static void x_erase_phys_cursor P_ ((struct window *));
432void x_display_and_set_cursor P_ ((struct window *, int, int, int, int, int)); 432void x_display_and_set_cursor P_ ((struct window *, int, int, int, int, int));
433static void x_draw_bitmap P_ ((struct window *, struct glyph_row *, 433static void x_draw_fringe_bitmap P_ ((struct window *, struct glyph_row *,
434 enum bitmap_type)); 434 enum fringe_bitmap_type));
435 435
436static void x_clip_to_row P_ ((struct window *, struct glyph_row *, 436static void x_clip_to_row P_ ((struct window *, struct glyph_row *,
437 GC, int)); 437 GC, int));
438static int x_phys_cursor_in_rect_p P_ ((struct window *, Rect *)); 438static int x_phys_cursor_in_rect_p P_ ((struct window *, Rect *));
439static void x_draw_row_bitmaps P_ ((struct window *, struct glyph_row *)); 439static void x_draw_row_fringe_bitmaps P_ ((struct window *, struct glyph_row *));
440static void note_overwritten_text_cursor P_ ((struct window *, int, int)); 440static void note_overwritten_text_cursor P_ ((struct window *, int, int));
441static void x_flush P_ ((struct frame *f)); 441static void x_flush P_ ((struct frame *f));
442static void x_update_begin P_ ((struct frame *)); 442static void x_update_begin P_ ((struct frame *));
@@ -1154,7 +1154,7 @@ x_draw_vertical_border (w)
1154 int x0, x1, y0, y1; 1154 int x0, x1, y0, y1;
1155 1155
1156 window_box_edges (w, -1, &x0, &y0, &x1, &y1); 1156 window_box_edges (w, -1, &x0, &y0, &x1, &y1);
1157 x1 += FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f); 1157 x1 += FRAME_X_RIGHT_FRINGE_WIDTH (f);
1158 y1 -= 1; 1158 y1 -= 1;
1159 1159
1160 XDrawLine (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), 1160 XDrawLine (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f),
@@ -1260,7 +1260,7 @@ XTframe_up_to_date (f)
1260 1260
1261 1261
1262/* Draw truncation mark bitmaps, continuation mark bitmaps, overlay 1262/* Draw truncation mark bitmaps, continuation mark bitmaps, overlay
1263 arrow bitmaps, or clear the areas where they would be displayed 1263 arrow bitmaps, or clear the fringes if no bitmaps are required
1264 before DESIRED_ROW is made current. The window being updated is 1264 before DESIRED_ROW is made current. The window being updated is
1265 found in updated_window. This function It is called from 1265 found in updated_window. This function It is called from
1266 update_window_line only if it is known that there are differences 1266 update_window_line only if it is known that there are differences
@@ -1277,7 +1277,7 @@ x_after_update_window_line (desired_row)
1277 if (!desired_row->mode_line_p && !w->pseudo_window_p) 1277 if (!desired_row->mode_line_p && !w->pseudo_window_p)
1278 { 1278 {
1279 BLOCK_INPUT; 1279 BLOCK_INPUT;
1280 x_draw_row_bitmaps (w, desired_row); 1280 x_draw_row_fringe_bitmaps (w, desired_row);
1281 1281
1282 /* When a window has disappeared, make sure that no rest of 1282 /* When a window has disappeared, make sure that no rest of
1283 full-width rows stays visible in the internal border. */ 1283 full-width rows stays visible in the internal border. */
@@ -1287,7 +1287,7 @@ x_after_update_window_line (desired_row)
1287 int width = FRAME_INTERNAL_BORDER_WIDTH (f); 1287 int width = FRAME_INTERNAL_BORDER_WIDTH (f);
1288 int height = desired_row->visible_height; 1288 int height = desired_row->visible_height;
1289 int x = (window_box_right (w, -1) 1289 int x = (window_box_right (w, -1)
1290 + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f)); 1290 + FRAME_X_RIGHT_FRINGE_WIDTH (f));
1291 int y = WINDOW_TO_FRAME_PIXEL_Y (w, max (0, desired_row->y)); 1291 int y = WINDOW_TO_FRAME_PIXEL_Y (w, max (0, desired_row->y));
1292 1292
1293 XClearArea (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), 1293 XClearArea (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f),
@@ -1299,16 +1299,16 @@ x_after_update_window_line (desired_row)
1299} 1299}
1300 1300
1301 1301
1302/* Draw the bitmap WHICH in one of the areas to the left or right of 1302/* Draw the bitmap WHICH in one of the left or right fringes of
1303 window W. ROW is the glyph row for which to display the bitmap; it 1303 window W. ROW is the glyph row for which to display the bitmap; it
1304 determines the vertical position at which the bitmap has to be 1304 determines the vertical position at which the bitmap has to be
1305 drawn. */ 1305 drawn. */
1306 1306
1307static void 1307static void
1308x_draw_bitmap (w, row, which) 1308x_draw_fringe_bitmap (w, row, which)
1309 struct window *w; 1309 struct window *w;
1310 struct glyph_row *row; 1310 struct glyph_row *row;
1311 enum bitmap_type which; 1311 enum fringe_bitmap_type which;
1312{ 1312{
1313 struct frame *f = XFRAME (WINDOW_FRAME (w)); 1313 struct frame *f = XFRAME (WINDOW_FRAME (w));
1314 Display *display = FRAME_MAC_DISPLAY (f); 1314 Display *display = FRAME_MAC_DISPLAY (f);
@@ -1330,7 +1330,7 @@ x_draw_bitmap (w, row, which)
1330 bits = left_bits; 1330 bits = left_bits;
1331 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 1331 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
1332 - wd 1332 - wd
1333 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 1333 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
1334 break; 1334 break;
1335 1335
1336 case OVERLAY_ARROW_BITMAP: 1336 case OVERLAY_ARROW_BITMAP:
@@ -1339,7 +1339,7 @@ x_draw_bitmap (w, row, which)
1339 bits = ov_bits; 1339 bits = ov_bits;
1340 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 1340 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
1341 - wd 1341 - wd
1342 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 1342 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
1343 break; 1343 break;
1344 1344
1345 case RIGHT_TRUNCATION_BITMAP: 1345 case RIGHT_TRUNCATION_BITMAP:
@@ -1347,7 +1347,7 @@ x_draw_bitmap (w, row, which)
1347 h = right_height; 1347 h = right_height;
1348 bits = right_bits; 1348 bits = right_bits;
1349 x = window_box_right (w, -1); 1349 x = window_box_right (w, -1);
1350 x += (FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) - wd) / 2; 1350 x += (FRAME_X_RIGHT_FRINGE_WIDTH (f) - wd) / 2;
1351 break; 1351 break;
1352 1352
1353 case CONTINUED_LINE_BITMAP: 1353 case CONTINUED_LINE_BITMAP:
@@ -1355,7 +1355,7 @@ x_draw_bitmap (w, row, which)
1355 h = right_height; 1355 h = right_height;
1356 bits = continued_bits; 1356 bits = continued_bits;
1357 x = window_box_right (w, -1); 1357 x = window_box_right (w, -1);
1358 x += (FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) - wd) / 2; 1358 x += (FRAME_X_RIGHT_FRINGE_WIDTH (f) - wd) / 2;
1359 break; 1359 break;
1360 1360
1361 case CONTINUATION_LINE_BITMAP: 1361 case CONTINUATION_LINE_BITMAP:
@@ -1364,7 +1364,7 @@ x_draw_bitmap (w, row, which)
1364 bits = continuation_bits; 1364 bits = continuation_bits;
1365 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 1365 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
1366 - wd 1366 - wd
1367 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 1367 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
1368 break; 1368 break;
1369 1369
1370 case ZV_LINE_BITMAP: 1370 case ZV_LINE_BITMAP:
@@ -1373,7 +1373,7 @@ x_draw_bitmap (w, row, which)
1373 bits = zv_bits; 1373 bits = zv_bits;
1374 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 1374 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
1375 - wd 1375 - wd
1376 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 1376 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
1377 break; 1377 break;
1378 1378
1379 default: 1379 default:
@@ -1387,7 +1387,7 @@ x_draw_bitmap (w, row, which)
1387 1387
1388 /* Draw the bitmap. I believe these small pixmaps can be cached 1388 /* Draw the bitmap. I believe these small pixmaps can be cached
1389 by the server. */ 1389 by the server. */
1390 face = FACE_FROM_ID (f, BITMAP_AREA_FACE_ID); 1390 face = FACE_FROM_ID (f, FRINGE_FACE_ID);
1391 1391
1392 mac_create_bitmap_from_bitmap_data (&bitmap, bits, wd, h); 1392 mac_create_bitmap_from_bitmap_data (&bitmap, bits, wd, h);
1393 gcv.foreground = face->foreground; 1393 gcv.foreground = face->foreground;
@@ -1400,16 +1400,16 @@ x_draw_bitmap (w, row, which)
1400} 1400}
1401 1401
1402 1402
1403/* Draw flags bitmaps for glyph row ROW on window W. Call this 1403/* Draw fringe bitmaps for glyph row ROW on window W. Call this
1404 function with input blocked. */ 1404 function with input blocked. */
1405 1405
1406static void 1406static void
1407x_draw_row_bitmaps (w, row) 1407x_draw_row_fringe_bitmaps (w, row)
1408 struct window *w; 1408 struct window *w;
1409 struct glyph_row *row; 1409 struct glyph_row *row;
1410{ 1410{
1411 struct frame *f = XFRAME (w->frame); 1411 struct frame *f = XFRAME (w->frame);
1412 enum bitmap_type bitmap; 1412 enum fringe_bitmap_type bitmap;
1413 struct face *face; 1413 struct face *face;
1414 int header_line_height = -1; 1414 int header_line_height = -1;
1415 1415
@@ -1420,10 +1420,10 @@ x_draw_row_bitmaps (w, row)
1420 if (row->visible_height <= 0) 1420 if (row->visible_height <= 0)
1421 return; 1421 return;
1422 1422
1423 face = FACE_FROM_ID (f, BITMAP_AREA_FACE_ID); 1423 face = FACE_FROM_ID (f, FRINGE_FACE_ID);
1424 PREPARE_FACE_FOR_DISPLAY (f, face); 1424 PREPARE_FACE_FOR_DISPLAY (f, face);
1425 1425
1426 /* Decide which bitmap to draw at the left side. */ 1426 /* Decide which bitmap to draw in the left fringe. */
1427 if (row->overlay_arrow_p) 1427 if (row->overlay_arrow_p)
1428 bitmap = OVERLAY_ARROW_BITMAP; 1428 bitmap = OVERLAY_ARROW_BITMAP;
1429 else if (row->truncated_on_left_p) 1429 else if (row->truncated_on_left_p)
@@ -1433,13 +1433,13 @@ x_draw_row_bitmaps (w, row)
1433 else if (row->indicate_empty_line_p) 1433 else if (row->indicate_empty_line_p)
1434 bitmap = ZV_LINE_BITMAP; 1434 bitmap = ZV_LINE_BITMAP;
1435 else 1435 else
1436 bitmap = NO_BITMAP; 1436 bitmap = NO_FRINGE_BITMAP;
1437 1437
1438 /* Clear flags area if no bitmap to draw or if bitmap doesn't fill 1438 /* Clear left fringe if no bitmap to draw or if bitmap doesn't fill
1439 the flags area. */ 1439 the fringe. */
1440 if (bitmap == NO_BITMAP 1440 if (bitmap == NO_FRINGE_BITMAP
1441 || FRAME_FLAGS_BITMAP_WIDTH (f) < FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) 1441 || FRAME_FRINGE_BITMAP_WIDTH (f) < FRAME_X_LEFT_FRINGE_WIDTH (f)
1442 || row->height > FRAME_FLAGS_BITMAP_HEIGHT (f)) 1442 || row->height > FRAME_FRINGE_BITMAP_HEIGHT (f))
1443 { 1443 {
1444 /* If W has a vertical border to its left, don't draw over it. */ 1444 /* If W has a vertical border to its left, don't draw over it. */
1445 int border = ((XFASTINT (w->left) > 0 1445 int border = ((XFASTINT (w->left) > 0
@@ -1451,7 +1451,7 @@ x_draw_row_bitmaps (w, row)
1451 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); 1451 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w);
1452 1452
1453#if 0 /* MAC_TODO: stipple */ 1453#if 0 /* MAC_TODO: stipple */
1454 /* In case the same realized face is used for bitmap areas and 1454 /* In case the same realized face is used for fringes and
1455 for something displayed in the text (e.g. face `region' on 1455 for something displayed in the text (e.g. face `region' on
1456 mono-displays, the fill style may have been changed to 1456 mono-displays, the fill style may have been changed to
1457 FillSolid in x_draw_glyph_string_background. */ 1457 FillSolid in x_draw_glyph_string_background. */
@@ -1463,11 +1463,11 @@ x_draw_row_bitmaps (w, row)
1463 XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 1463 XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
1464 face->gc, 1464 face->gc,
1465 (left 1465 (left
1466 - FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) 1466 - FRAME_X_LEFT_FRINGE_WIDTH (f)
1467 + border), 1467 + border),
1468 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 1468 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height,
1469 row->y)), 1469 row->y)),
1470 FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - border, 1470 FRAME_X_LEFT_FRINGE_WIDTH (f) - border,
1471 row->visible_height); 1471 row->visible_height);
1472 if (!face->stipple) 1472 if (!face->stipple)
1473 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground); 1473 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground);
@@ -1478,33 +1478,33 @@ x_draw_row_bitmaps (w, row)
1478 XFillRectangle (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), 1478 XFillRectangle (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f),
1479 &gcv, 1479 &gcv,
1480 (left 1480 (left
1481 - FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) 1481 - FRAME_X_LEFT_FRINGE_WIDTH (f)
1482 + border), 1482 + border),
1483 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 1483 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height,
1484 row->y)), 1484 row->y)),
1485 FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - border, 1485 FRAME_X_LEFT_FRINGE_WIDTH (f) - border,
1486 row->visible_height); 1486 row->visible_height);
1487 } 1487 }
1488 1488
1489 } 1489 }
1490 1490
1491 /* Draw the left bitmap. */ 1491 /* Draw the left bitmap. */
1492 if (bitmap != NO_BITMAP) 1492 if (bitmap != NO_FRINGE_BITMAP)
1493 x_draw_bitmap (w, row, bitmap); 1493 x_draw_fringe_bitmap (w, row, bitmap);
1494 1494
1495 /* Decide which bitmap to draw at the right side. */ 1495 /* Decide which bitmap to draw in the right fringe. */
1496 if (row->truncated_on_right_p) 1496 if (row->truncated_on_right_p)
1497 bitmap = RIGHT_TRUNCATION_BITMAP; 1497 bitmap = RIGHT_TRUNCATION_BITMAP;
1498 else if (row->continued_p) 1498 else if (row->continued_p)
1499 bitmap = CONTINUED_LINE_BITMAP; 1499 bitmap = CONTINUED_LINE_BITMAP;
1500 else 1500 else
1501 bitmap = NO_BITMAP; 1501 bitmap = NO_FRINGE_BITMAP;
1502 1502
1503 /* Clear flags area if no bitmap to draw of if bitmap doesn't fill 1503 /* Clear right fringe if no bitmap to draw of if bitmap doesn't fill
1504 the flags area. */ 1504 the fringe. */
1505 if (bitmap == NO_BITMAP 1505 if (bitmap == NO_FRINGE_BITMAP
1506 || FRAME_FLAGS_BITMAP_WIDTH (f) < FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) 1506 || FRAME_FRINGE_BITMAP_WIDTH (f) < FRAME_X_RIGHT_FRINGE_WIDTH (f)
1507 || row->height > FRAME_FLAGS_BITMAP_HEIGHT (f)) 1507 || row->height > FRAME_FRINGE_BITMAP_HEIGHT (f))
1508 { 1508 {
1509 int right = window_box_right (w, -1); 1509 int right = window_box_right (w, -1);
1510 1510
@@ -1512,7 +1512,7 @@ x_draw_row_bitmaps (w, row)
1512 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); 1512 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w);
1513 1513
1514#if 0 /* MAC_TODO: stipple */ 1514#if 0 /* MAC_TODO: stipple */
1515 /* In case the same realized face is used for bitmap areas and 1515 /* In case the same realized face is used for fringes and
1516 for something displayed in the text (e.g. face `region' on 1516 for something displayed in the text (e.g. face `region' on
1517 mono-displays, the fill style may have been changed to 1517 mono-displays, the fill style may have been changed to
1518 FillSolid in x_draw_glyph_string_background. */ 1518 FillSolid in x_draw_glyph_string_background. */
@@ -1525,7 +1525,7 @@ x_draw_row_bitmaps (w, row)
1525 right, 1525 right,
1526 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 1526 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height,
1527 row->y)), 1527 row->y)),
1528 FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f), 1528 FRAME_X_RIGHT_FRINGE_WIDTH (f),
1529 row->visible_height); 1529 row->visible_height);
1530 if (!face->stipple) 1530 if (!face->stipple)
1531 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground); 1531 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground);
@@ -1538,15 +1538,15 @@ x_draw_row_bitmaps (w, row)
1538 right, 1538 right,
1539 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 1539 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height,
1540 row->y)), 1540 row->y)),
1541 FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f), 1541 FRAME_X_RIGHT_FRINGE_WIDTH (f),
1542 row->visible_height); 1542 row->visible_height);
1543 } 1543 }
1544 1544
1545 } 1545 }
1546 1546
1547 /* Draw the right bitmap. */ 1547 /* Draw the right bitmap. */
1548 if (bitmap != NO_BITMAP) 1548 if (bitmap != NO_FRINGE_BITMAP)
1549 x_draw_bitmap (w, row, bitmap); 1549 x_draw_fringe_bitmap (w, row, bitmap);
1550} 1550}
1551 1551
1552 1552
@@ -4143,7 +4143,7 @@ x_draw_glyph_string_box (s)
4143 if (s->row->full_width_p 4143 if (s->row->full_width_p
4144 && !s->w->pseudo_window_p) 4144 && !s->w->pseudo_window_p)
4145 { 4145 {
4146 last_x += FRAME_X_RIGHT_FLAGS_AREA_WIDTH (s->f); 4146 last_x += FRAME_X_RIGHT_FRINGE_WIDTH (s->f);
4147 if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (s->f)) 4147 if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (s->f))
4148 last_x += FRAME_SCROLL_BAR_WIDTH (s->f) * CANON_X_UNIT (s->f); 4148 last_x += FRAME_SCROLL_BAR_WIDTH (s->f) * CANON_X_UNIT (s->f);
4149 } 4149 }
@@ -5193,9 +5193,9 @@ x_draw_glyphs (w, x, row, area, start, end, hl, real_start, real_end,
5193 if (row->full_width_p) 5193 if (row->full_width_p)
5194 { 5194 {
5195 /* X is relative to the left edge of W, without scroll bars 5195 /* X is relative to the left edge of W, without scroll bars
5196 or flag areas. */ 5196 or fringes. */
5197 struct frame *f = XFRAME (w->frame); 5197 struct frame *f = XFRAME (w->frame);
5198 /* int width = FRAME_FLAGS_AREA_WIDTH (f); */ 5198 /* int width = FRAME_FRINGE_WIDTH (f); */
5199 int window_left_x = WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f); 5199 int window_left_x = WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f);
5200 5200
5201 x += window_left_x; 5201 x += window_left_x;
@@ -5750,11 +5750,11 @@ x_scroll_run (w, run)
5750 int x, y, width, height, from_y, to_y, bottom_y; 5750 int x, y, width, height, from_y, to_y, bottom_y;
5751 5751
5752 /* Get frame-relative bounding box of the text display area of W, 5752 /* Get frame-relative bounding box of the text display area of W,
5753 without mode lines. Include in this box the flags areas to the 5753 without mode lines. Include in this box the left and right
5754 left and right of W. */ 5754 fringes of W. */
5755 window_box (w, -1, &x, &y, &width, &height); 5755 window_box (w, -1, &x, &y, &width, &height);
5756 width += FRAME_X_FLAGS_AREA_WIDTH (f); 5756 width += FRAME_X_FRINGE_WIDTH (f);
5757 x -= FRAME_X_LEFT_FLAGS_AREA_WIDTH (f); 5757 x -= FRAME_X_LEFT_FRINGE_WIDTH (f);
5758 5758
5759 from_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->current_y); 5759 from_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->current_y);
5760 to_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->desired_y); 5760 to_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->desired_y);
@@ -5922,12 +5922,12 @@ expose_window_tree (w, r)
5922 &window_height); 5922 &window_height);
5923 window_rect.left 5923 window_rect.left
5924 = (window_x 5924 = (window_x
5925 - FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) 5925 - FRAME_X_LEFT_FRINGE_WIDTH (f)
5926 - FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_Y_UNIT (f)); 5926 - FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_Y_UNIT (f));
5927 window_rect.top = window_y; 5927 window_rect.top = window_y;
5928 window_rect.right = window_rect.left 5928 window_rect.right = window_rect.left
5929 + (window_width 5929 + (window_width
5930 + FRAME_X_FLAGS_AREA_WIDTH (f) 5930 + FRAME_X_FRINGE_WIDTH (f)
5931 + FRAME_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f)); 5931 + FRAME_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f));
5932 window_rect.bottom = window_rect.top 5932 window_rect.bottom = window_rect.top
5933 + window_height + CURRENT_MODE_LINE_HEIGHT (w); 5933 + window_height + CURRENT_MODE_LINE_HEIGHT (w);
@@ -6028,7 +6028,7 @@ expose_line (w, row, r)
6028 expose_area (w, row, r, TEXT_AREA); 6028 expose_area (w, row, r, TEXT_AREA);
6029 if (row->used[RIGHT_MARGIN_AREA]) 6029 if (row->used[RIGHT_MARGIN_AREA])
6030 expose_area (w, row, r, RIGHT_MARGIN_AREA); 6030 expose_area (w, row, r, RIGHT_MARGIN_AREA);
6031 x_draw_row_bitmaps (w, row); 6031 x_draw_row_fringe_bitmaps (w, row);
6032 } 6032 }
6033} 6033}
6034 6034
@@ -6752,7 +6752,7 @@ frame_to_window_pixel_xy (w, x, y)
6752/* Take proper action when mouse has moved to the mode or top line of 6752/* Take proper action when mouse has moved to the mode or top line of
6753 window W, x-position X. MODE_LINE_P non-zero means mouse is on the 6753 window W, x-position X. MODE_LINE_P non-zero means mouse is on the
6754 mode line. X is relative to the start of the text display area of 6754 mode line. X is relative to the start of the text display area of
6755 W, so the width of bitmap areas and scroll bars must be subtracted 6755 W, so the width of fringes and scroll bars must be subtracted
6756 to get a position relative to the start of the mode line. */ 6756 to get a position relative to the start of the mode line. */
6757 6757
6758static void 6758static void
@@ -6780,7 +6780,7 @@ note_mode_line_highlight (w, x, mode_line_p)
6780 glyph = row->glyphs[TEXT_AREA]; 6780 glyph = row->glyphs[TEXT_AREA];
6781 end = glyph + row->used[TEXT_AREA]; 6781 end = glyph + row->used[TEXT_AREA];
6782 x0 = - (FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f) 6782 x0 = - (FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f)
6783 + FRAME_X_LEFT_FLAGS_AREA_WIDTH (f)); 6783 + FRAME_X_LEFT_FRINGE_WIDTH (f));
6784 while (glyph < end 6784 while (glyph < end
6785 && x >= x0 + glyph->pixel_width) 6785 && x >= x0 + glyph->pixel_width)
6786 { 6786 {
@@ -8281,8 +8281,8 @@ x_clip_to_row (w, row, gc, whole_line_p)
8281 the rectangle to the left and increase its width. */ 8281 the rectangle to the left and increase its width. */
8282 if (whole_line_p) 8282 if (whole_line_p)
8283 { 8283 {
8284 clip_rect.left -= FRAME_X_LEFT_FLAGS_AREA_WIDTH (f); 8284 clip_rect.left -= FRAME_X_LEFT_FRINGE_WIDTH (f);
8285 clip_rect.right += FRAME_X_FLAGS_AREA_WIDTH (f); 8285 clip_rect.right += FRAME_X_FRINGE_WIDTH (f);
8286 } 8286 }
8287 8287
8288 mac_set_clip_rectangle (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), &clip_rect); 8288 mac_set_clip_rectangle (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), &clip_rect);
@@ -9514,8 +9514,8 @@ x_set_window_size (f, change_gravity, cols, rows)
9514 : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0 9514 : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0
9515 ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) 9515 ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f)
9516 : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.mac->font))); 9516 : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.mac->font)));
9517 f->output_data.mac->flags_areas_extra 9517 f->output_data.mac->fringes_extra
9518 = FRAME_FLAGS_AREA_WIDTH (f); 9518 = FRAME_FRINGE_WIDTH (f);
9519 pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols); 9519 pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols);
9520 pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows); 9520 pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows);
9521 9521
diff --git a/src/xterm.c b/src/xterm.c
index b2c875eb3d5..acccc174f0a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -155,11 +155,11 @@ extern void _XEditResCheckMessages ();
155#define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER)) 155#define BETWEEN(X, LOWER, UPPER) ((X) >= (LOWER) && (X) < (UPPER))
156 156
157 157
158/* Bitmaps for truncated lines. */ 158/* Fringe bitmaps. */
159 159
160enum bitmap_type 160enum fringe_bitmap_type
161{ 161{
162 NO_BITMAP, 162 NO_FRINGE_BITMAP,
163 LEFT_TRUNCATION_BITMAP, 163 LEFT_TRUNCATION_BITMAP,
164 RIGHT_TRUNCATION_BITMAP, 164 RIGHT_TRUNCATION_BITMAP,
165 OVERLAY_ARROW_BITMAP, 165 OVERLAY_ARROW_BITMAP,
@@ -463,13 +463,13 @@ static void x_update_cursor_in_window_tree P_ ((struct window *, int));
463static void x_update_window_cursor P_ ((struct window *, int)); 463static void x_update_window_cursor P_ ((struct window *, int));
464static void x_erase_phys_cursor P_ ((struct window *)); 464static void x_erase_phys_cursor P_ ((struct window *));
465void x_display_and_set_cursor P_ ((struct window *, int, int, int, int, int)); 465void x_display_and_set_cursor P_ ((struct window *, int, int, int, int, int));
466static void x_draw_bitmap P_ ((struct window *, struct glyph_row *, 466static void x_draw_fringe_bitmap P_ ((struct window *, struct glyph_row *,
467 enum bitmap_type)); 467 enum fringe_bitmap_type));
468 468
469static void x_clip_to_row P_ ((struct window *, struct glyph_row *, 469static void x_clip_to_row P_ ((struct window *, struct glyph_row *,
470 GC, int)); 470 GC, int));
471static int x_phys_cursor_in_rect_p P_ ((struct window *, XRectangle *)); 471static int x_phys_cursor_in_rect_p P_ ((struct window *, XRectangle *));
472static void x_draw_row_bitmaps P_ ((struct window *, struct glyph_row *)); 472static void x_draw_row_fringe_bitmaps P_ ((struct window *, struct glyph_row *));
473static void notice_overwritten_cursor P_ ((struct window *, int, int)); 473static void notice_overwritten_cursor P_ ((struct window *, int, int));
474static void x_flush P_ ((struct frame *f)); 474static void x_flush P_ ((struct frame *f));
475static void x_update_begin P_ ((struct frame *)); 475static void x_update_begin P_ ((struct frame *));
@@ -659,7 +659,7 @@ x_draw_vertical_border (w)
659 int x0, x1, y0, y1; 659 int x0, x1, y0, y1;
660 660
661 window_box_edges (w, -1, &x0, &y0, &x1, &y1); 661 window_box_edges (w, -1, &x0, &y0, &x1, &y1);
662 x1 += FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f); 662 x1 += FRAME_X_RIGHT_FRINGE_WIDTH (f);
663 y1 -= 1; 663 y1 -= 1;
664 664
665 XDrawLine (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 665 XDrawLine (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
@@ -758,7 +758,7 @@ XTframe_up_to_date (f)
758 758
759 759
760/* Draw truncation mark bitmaps, continuation mark bitmaps, overlay 760/* Draw truncation mark bitmaps, continuation mark bitmaps, overlay
761 arrow bitmaps, or clear the areas where they would be displayed 761 arrow bitmaps, or clear the fringes if no bitmaps are required
762 before DESIRED_ROW is made current. The window being updated is 762 before DESIRED_ROW is made current. The window being updated is
763 found in updated_window. This function It is called from 763 found in updated_window. This function It is called from
764 update_window_line only if it is known that there are differences 764 update_window_line only if it is known that there are differences
@@ -777,7 +777,7 @@ x_after_update_window_line (desired_row)
777 if (!desired_row->mode_line_p && !w->pseudo_window_p) 777 if (!desired_row->mode_line_p && !w->pseudo_window_p)
778 { 778 {
779 BLOCK_INPUT; 779 BLOCK_INPUT;
780 x_draw_row_bitmaps (w, desired_row); 780 x_draw_row_fringe_bitmaps (w, desired_row);
781 UNBLOCK_INPUT; 781 UNBLOCK_INPUT;
782 } 782 }
783 783
@@ -813,16 +813,16 @@ x_after_update_window_line (desired_row)
813} 813}
814 814
815 815
816/* Draw the bitmap WHICH in one of the areas to the left or right of 816/* Draw the bitmap WHICH in one of the left or right fringes of
817 window W. ROW is the glyph row for which to display the bitmap; it 817 window W. ROW is the glyph row for which to display the bitmap; it
818 determines the vertical position at which the bitmap has to be 818 determines the vertical position at which the bitmap has to be
819 drawn. */ 819 drawn. */
820 820
821static void 821static void
822x_draw_bitmap (w, row, which) 822x_draw_fringe_bitmap (w, row, which)
823 struct window *w; 823 struct window *w;
824 struct glyph_row *row; 824 struct glyph_row *row;
825 enum bitmap_type which; 825 enum fringe_bitmap_type which;
826{ 826{
827 struct frame *f = XFRAME (WINDOW_FRAME (w)); 827 struct frame *f = XFRAME (WINDOW_FRAME (w));
828 Display *display = FRAME_X_DISPLAY (f); 828 Display *display = FRAME_X_DISPLAY (f);
@@ -845,7 +845,7 @@ x_draw_bitmap (w, row, which)
845 bits = left_bits; 845 bits = left_bits;
846 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 846 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
847 - wd 847 - wd
848 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 848 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
849 break; 849 break;
850 850
851 case OVERLAY_ARROW_BITMAP: 851 case OVERLAY_ARROW_BITMAP:
@@ -854,7 +854,7 @@ x_draw_bitmap (w, row, which)
854 bits = ov_bits; 854 bits = ov_bits;
855 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 855 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
856 - wd 856 - wd
857 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 857 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
858 break; 858 break;
859 859
860 case RIGHT_TRUNCATION_BITMAP: 860 case RIGHT_TRUNCATION_BITMAP:
@@ -862,7 +862,7 @@ x_draw_bitmap (w, row, which)
862 h = right_height; 862 h = right_height;
863 bits = right_bits; 863 bits = right_bits;
864 x = window_box_right (w, -1); 864 x = window_box_right (w, -1);
865 x += (FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) - wd) / 2; 865 x += (FRAME_X_RIGHT_FRINGE_WIDTH (f) - wd) / 2;
866 break; 866 break;
867 867
868 case CONTINUED_LINE_BITMAP: 868 case CONTINUED_LINE_BITMAP:
@@ -870,7 +870,7 @@ x_draw_bitmap (w, row, which)
870 h = right_height; 870 h = right_height;
871 bits = continued_bits; 871 bits = continued_bits;
872 x = window_box_right (w, -1); 872 x = window_box_right (w, -1);
873 x += (FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) - wd) / 2; 873 x += (FRAME_X_RIGHT_FRINGE_WIDTH (f) - wd) / 2;
874 break; 874 break;
875 875
876 case CONTINUATION_LINE_BITMAP: 876 case CONTINUATION_LINE_BITMAP:
@@ -879,7 +879,7 @@ x_draw_bitmap (w, row, which)
879 bits = continuation_bits; 879 bits = continuation_bits;
880 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 880 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
881 - wd 881 - wd
882 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 882 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
883 break; 883 break;
884 884
885 case ZV_LINE_BITMAP: 885 case ZV_LINE_BITMAP:
@@ -888,7 +888,7 @@ x_draw_bitmap (w, row, which)
888 bits = zv_bits; 888 bits = zv_bits;
889 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0) 889 x = (WINDOW_TO_FRAME_PIXEL_X (w, 0)
890 - wd 890 - wd
891 - (FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - wd) / 2); 891 - (FRAME_X_LEFT_FRINGE_WIDTH (f) - wd) / 2);
892 break; 892 break;
893 893
894 default: 894 default:
@@ -902,7 +902,7 @@ x_draw_bitmap (w, row, which)
902 902
903 /* Draw the bitmap. I believe these small pixmaps can be cached 903 /* Draw the bitmap. I believe these small pixmaps can be cached
904 by the server. */ 904 by the server. */
905 face = FACE_FROM_ID (f, BITMAP_AREA_FACE_ID); 905 face = FACE_FROM_ID (f, FRINGE_FACE_ID);
906 pixmap = XCreatePixmapFromBitmapData (display, window, bits, wd, h, 906 pixmap = XCreatePixmapFromBitmapData (display, window, bits, wd, h,
907 face->foreground, 907 face->foreground,
908 face->background, depth); 908 face->background, depth);
@@ -912,16 +912,16 @@ x_draw_bitmap (w, row, which)
912} 912}
913 913
914 914
915/* Draw flags bitmaps for glyph row ROW on window W. Call this 915/* Draw fringe bitmaps for glyph row ROW on window W. Call this
916 function with input blocked. */ 916 function with input blocked. */
917 917
918static void 918static void
919x_draw_row_bitmaps (w, row) 919x_draw_row_fringe_bitmaps (w, row)
920 struct window *w; 920 struct window *w;
921 struct glyph_row *row; 921 struct glyph_row *row;
922{ 922{
923 struct frame *f = XFRAME (w->frame); 923 struct frame *f = XFRAME (w->frame);
924 enum bitmap_type bitmap; 924 enum fringe_bitmap_type bitmap;
925 struct face *face; 925 struct face *face;
926 int header_line_height = -1; 926 int header_line_height = -1;
927 927
@@ -932,10 +932,10 @@ x_draw_row_bitmaps (w, row)
932 if (row->visible_height <= 0) 932 if (row->visible_height <= 0)
933 return; 933 return;
934 934
935 face = FACE_FROM_ID (f, BITMAP_AREA_FACE_ID); 935 face = FACE_FROM_ID (f, FRINGE_FACE_ID);
936 PREPARE_FACE_FOR_DISPLAY (f, face); 936 PREPARE_FACE_FOR_DISPLAY (f, face);
937 937
938 /* Decide which bitmap to draw at the left side. */ 938 /* Decide which bitmap to draw in the left fringe. */
939 if (row->overlay_arrow_p) 939 if (row->overlay_arrow_p)
940 bitmap = OVERLAY_ARROW_BITMAP; 940 bitmap = OVERLAY_ARROW_BITMAP;
941 else if (row->truncated_on_left_p) 941 else if (row->truncated_on_left_p)
@@ -945,13 +945,13 @@ x_draw_row_bitmaps (w, row)
945 else if (row->indicate_empty_line_p) 945 else if (row->indicate_empty_line_p)
946 bitmap = ZV_LINE_BITMAP; 946 bitmap = ZV_LINE_BITMAP;
947 else 947 else
948 bitmap = NO_BITMAP; 948 bitmap = NO_FRINGE_BITMAP;
949 949
950 /* Clear flags area if no bitmap to draw or if bitmap doesn't fill 950 /* Clear left fringe if no bitmap to draw or if bitmap doesn't fill
951 the flags area. */ 951 the fringe. */
952 if (bitmap == NO_BITMAP 952 if (bitmap == NO_FRINGE_BITMAP
953 || FRAME_FLAGS_BITMAP_WIDTH (f) < FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) 953 || FRAME_FRINGE_BITMAP_WIDTH (f) < FRAME_X_LEFT_FRINGE_WIDTH (f)
954 || row->height > FRAME_FLAGS_BITMAP_HEIGHT (f)) 954 || row->height > FRAME_FRINGE_BITMAP_HEIGHT (f))
955 { 955 {
956 /* If W has a vertical border to its left, don't draw over it. */ 956 /* If W has a vertical border to its left, don't draw over it. */
957 int border = ((XFASTINT (w->left) > 0 957 int border = ((XFASTINT (w->left) > 0
@@ -962,7 +962,7 @@ x_draw_row_bitmaps (w, row)
962 if (header_line_height < 0) 962 if (header_line_height < 0)
963 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); 963 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w);
964 964
965 /* In case the same realized face is used for bitmap areas and 965 /* In case the same realized face is used for fringes and
966 for something displayed in the text (e.g. face `region' on 966 for something displayed in the text (e.g. face `region' on
967 mono-displays, the fill style may have been changed to 967 mono-displays, the fill style may have been changed to
968 FillSolid in x_draw_glyph_string_background. */ 968 FillSolid in x_draw_glyph_string_background. */
@@ -974,40 +974,40 @@ x_draw_row_bitmaps (w, row)
974 XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 974 XFillRectangle (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
975 face->gc, 975 face->gc,
976 (left 976 (left
977 - FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) 977 - FRAME_X_LEFT_FRINGE_WIDTH (f)
978 + border), 978 + border),
979 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 979 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height,
980 row->y)), 980 row->y)),
981 FRAME_X_LEFT_FLAGS_AREA_WIDTH (f) - border, 981 FRAME_X_LEFT_FRINGE_WIDTH (f) - border,
982 row->visible_height); 982 row->visible_height);
983 if (!face->stipple) 983 if (!face->stipple)
984 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground); 984 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground);
985 } 985 }
986 986
987 /* Draw the left bitmap. */ 987 /* Draw the left bitmap. */
988 if (bitmap != NO_BITMAP) 988 if (bitmap != NO_FRINGE_BITMAP)
989 x_draw_bitmap (w, row, bitmap); 989 x_draw_fringe_bitmap (w, row, bitmap);
990 990
991 /* Decide which bitmap to draw at the right side. */ 991 /* Decide which bitmap to draw in the right fringe. */
992 if (row->truncated_on_right_p) 992 if (row->truncated_on_right_p)
993 bitmap = RIGHT_TRUNCATION_BITMAP; 993 bitmap = RIGHT_TRUNCATION_BITMAP;
994 else if (row->continued_p) 994 else if (row->continued_p)
995 bitmap = CONTINUED_LINE_BITMAP; 995 bitmap = CONTINUED_LINE_BITMAP;
996 else 996 else
997 bitmap = NO_BITMAP; 997 bitmap = NO_FRINGE_BITMAP;
998 998
999 /* Clear flags area if no bitmap to draw of if bitmap doesn't fill 999 /* Clear right fringe if no bitmap to draw of if bitmap doesn't fill
1000 the flags area. */ 1000 the fringe. */
1001 if (bitmap == NO_BITMAP 1001 if (bitmap == NO_FRINGE_BITMAP
1002 || FRAME_FLAGS_BITMAP_WIDTH (f) < FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f) 1002 || FRAME_FRINGE_BITMAP_WIDTH (f) < FRAME_X_RIGHT_FRINGE_WIDTH (f)
1003 || row->height > FRAME_FLAGS_BITMAP_HEIGHT (f)) 1003 || row->height > FRAME_FRINGE_BITMAP_HEIGHT (f))
1004 { 1004 {
1005 int right = window_box_right (w, -1); 1005 int right = window_box_right (w, -1);
1006 1006
1007 if (header_line_height < 0) 1007 if (header_line_height < 0)
1008 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w); 1008 header_line_height = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w);
1009 1009
1010 /* In case the same realized face is used for bitmap areas and 1010 /* In case the same realized face is used for fringes and
1011 for something displayed in the text (e.g. face `region' on 1011 for something displayed in the text (e.g. face `region' on
1012 mono-displays, the fill style may have been changed to 1012 mono-displays, the fill style may have been changed to
1013 FillSolid in x_draw_glyph_string_background. */ 1013 FillSolid in x_draw_glyph_string_background. */
@@ -1020,15 +1020,15 @@ x_draw_row_bitmaps (w, row)
1020 right, 1020 right,
1021 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height, 1021 WINDOW_TO_FRAME_PIXEL_Y (w, max (header_line_height,
1022 row->y)), 1022 row->y)),
1023 FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f), 1023 FRAME_X_RIGHT_FRINGE_WIDTH (f),
1024 row->visible_height); 1024 row->visible_height);
1025 if (!face->stipple) 1025 if (!face->stipple)
1026 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground); 1026 XSetForeground (FRAME_X_DISPLAY (f), face->gc, face->foreground);
1027 } 1027 }
1028 1028
1029 /* Draw the right bitmap. */ 1029 /* Draw the right bitmap. */
1030 if (bitmap != NO_BITMAP) 1030 if (bitmap != NO_FRINGE_BITMAP)
1031 x_draw_bitmap (w, row, bitmap); 1031 x_draw_fringe_bitmap (w, row, bitmap);
1032} 1032}
1033 1033
1034 1034
@@ -3978,7 +3978,7 @@ x_draw_glyph_string_box (s)
3978 if (s->row->full_width_p 3978 if (s->row->full_width_p
3979 && !s->w->pseudo_window_p) 3979 && !s->w->pseudo_window_p)
3980 { 3980 {
3981 last_x += FRAME_X_RIGHT_FLAGS_AREA_WIDTH (s->f); 3981 last_x += FRAME_X_RIGHT_FRINGE_WIDTH (s->f);
3982 if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (s->f)) 3982 if (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (s->f))
3983 last_x += FRAME_SCROLL_BAR_WIDTH (s->f) * CANON_X_UNIT (s->f); 3983 last_x += FRAME_SCROLL_BAR_WIDTH (s->f) * CANON_X_UNIT (s->f);
3984 } 3984 }
@@ -5064,9 +5064,9 @@ x_draw_glyphs (w, x, row, area, start, end, hl, overlaps_p)
5064 if (row->full_width_p) 5064 if (row->full_width_p)
5065 { 5065 {
5066 /* X is relative to the left edge of W, without scroll bars 5066 /* X is relative to the left edge of W, without scroll bars
5067 or flag areas. */ 5067 or fringes. */
5068 struct frame *f = XFRAME (w->frame); 5068 struct frame *f = XFRAME (w->frame);
5069 /* int width = FRAME_FLAGS_AREA_WIDTH (f); */ 5069 /* int width = FRAME_FRINGE_WIDTH (f); */
5070 int window_left_x = WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f); 5070 int window_left_x = WINDOW_LEFT_MARGIN (w) * CANON_X_UNIT (f);
5071 5071
5072 x += window_left_x; 5072 x += window_left_x;
@@ -5732,11 +5732,11 @@ x_scroll_run (w, run)
5732 int x, y, width, height, from_y, to_y, bottom_y; 5732 int x, y, width, height, from_y, to_y, bottom_y;
5733 5733
5734 /* Get frame-relative bounding box of the text display area of W, 5734 /* Get frame-relative bounding box of the text display area of W,
5735 without mode lines. Include in this box the flags areas to the 5735 without mode lines. Include in this box the left and right
5736 left and right of W. */ 5736 fringe of W. */
5737 window_box (w, -1, &x, &y, &width, &height); 5737 window_box (w, -1, &x, &y, &width, &height);
5738 width += FRAME_X_FLAGS_AREA_WIDTH (f); 5738 width += FRAME_X_FRINGE_WIDTH (f);
5739 x -= FRAME_X_LEFT_FLAGS_AREA_WIDTH (f); 5739 x -= FRAME_X_LEFT_FRINGE_WIDTH (f);
5740 5740
5741 from_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->current_y); 5741 from_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->current_y);
5742 to_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->desired_y); 5742 to_y = WINDOW_TO_FRAME_PIXEL_Y (w, run->desired_y);
@@ -5980,7 +5980,7 @@ expose_line (w, row, r)
5980 expose_area (w, row, r, TEXT_AREA); 5980 expose_area (w, row, r, TEXT_AREA);
5981 if (row->used[RIGHT_MARGIN_AREA]) 5981 if (row->used[RIGHT_MARGIN_AREA])
5982 expose_area (w, row, r, RIGHT_MARGIN_AREA); 5982 expose_area (w, row, r, RIGHT_MARGIN_AREA);
5983 x_draw_row_bitmaps (w, row); 5983 x_draw_row_fringe_bitmaps (w, row);
5984 } 5984 }
5985 5985
5986 return row->mouse_face_p; 5986 return row->mouse_face_p;
@@ -6736,7 +6736,7 @@ frame_to_window_pixel_xy (w, x, y)
6736/* Take proper action when mouse has moved to the mode or header line of 6736/* Take proper action when mouse has moved to the mode or header line of
6737 window W, x-position X. MODE_LINE_P non-zero means mouse is on the 6737 window W, x-position X. MODE_LINE_P non-zero means mouse is on the
6738 mode line. X is relative to the start of the text display area of 6738 mode line. X is relative to the start of the text display area of
6739 W, so the width of bitmap areas and scroll bars must be subtracted 6739 W, so the width of fringes and scroll bars must be subtracted
6740 to get a position relative to the start of the mode line. */ 6740 to get a position relative to the start of the mode line. */
6741 6741
6742static void 6742static void
@@ -6764,7 +6764,7 @@ note_mode_line_highlight (w, x, mode_line_p)
6764 glyph = row->glyphs[TEXT_AREA]; 6764 glyph = row->glyphs[TEXT_AREA];
6765 end = glyph + row->used[TEXT_AREA]; 6765 end = glyph + row->used[TEXT_AREA];
6766 x0 = - (FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f) 6766 x0 = - (FRAME_LEFT_SCROLL_BAR_WIDTH (f) * CANON_X_UNIT (f)
6767 + FRAME_X_LEFT_FLAGS_AREA_WIDTH (f)); 6767 + FRAME_X_LEFT_FRINGE_WIDTH (f));
6768 6768
6769 while (glyph < end 6769 while (glyph < end
6770 && x >= x0 + glyph->pixel_width) 6770 && x >= x0 + glyph->pixel_width)
@@ -11146,8 +11146,8 @@ x_clip_to_row (w, row, gc, whole_line_p)
11146 the rectangle to the left and increase its width. */ 11146 the rectangle to the left and increase its width. */
11147 if (whole_line_p) 11147 if (whole_line_p)
11148 { 11148 {
11149 clip_rect.x -= FRAME_X_LEFT_FLAGS_AREA_WIDTH (f); 11149 clip_rect.x -= FRAME_X_LEFT_FRINGE_WIDTH (f);
11150 clip_rect.width += FRAME_X_FLAGS_AREA_WIDTH (f); 11150 clip_rect.width += FRAME_X_FRINGE_WIDTH (f);
11151 } 11151 }
11152 11152
11153 XSetClipRectangles (FRAME_X_DISPLAY (f), gc, 0, 0, &clip_rect, 1, Unsorted); 11153 XSetClipRectangles (FRAME_X_DISPLAY (f), gc, 0, 0, &clip_rect, 1, Unsorted);
@@ -12564,8 +12564,8 @@ x_set_window_size_1 (f, change_gravity, cols, rows)
12564 : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0 12564 : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0
12565 ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) 12565 ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f)
12566 : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.x->font))); 12566 : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.x->font)));
12567 f->output_data.x->flags_areas_extra 12567 f->output_data.x->fringes_extra
12568 = FRAME_FLAGS_AREA_WIDTH (f); 12568 = FRAME_FRINGE_WIDTH (f);
12569 pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols); 12569 pixelwidth = CHAR_TO_PIXEL_WIDTH (f, cols);
12570 pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows); 12570 pixelheight = CHAR_TO_PIXEL_HEIGHT (f, rows);
12571 12571