summaryrefslogtreecommitdiff
path: root/src/fringe.c
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2004-03-07 15:30:22 +0000
committerKaroly Lorentey <lorentey@elte.hu>2004-03-07 15:30:22 +0000
commit03fe84f07c72934cd9cb3b18a08d8dcf7b2fb2c6 (patch)
tree867f8423f4db34f156d630ee2704d0c5816d1874 /src/fringe.c
parent20cbd84698e1c07a8b233b58a8a0326ce5e082e7 (diff)
parentfb67079edffb1cca97a8e0a5b56be5e90cba2dfc (diff)
downloademacs-03fe84f07c72934cd9cb3b18a08d8dcf7b2fb2c6.tar.gz
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-126 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-127 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-128 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-129 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-130 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-131 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-132 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-133 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-134 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-135 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-136 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-137 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-112
Diffstat (limited to 'src/fringe.c')
-rw-r--r--src/fringe.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/fringe.c b/src/fringe.c
index b14668e8d7e..48a644707c6 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -637,7 +637,10 @@ draw_fringe_bitmap (w, row, left_p)
draw_fringe_bitmap_1 (w, row, left_p, overlay, NO_FRINGE_BITMAP);
if (left_p && row->overlay_arrow_p)
- draw_fringe_bitmap_1 (w, row, 1, 1, OVERLAY_ARROW_BITMAP);
+ draw_fringe_bitmap_1 (w, row, 1, 1,
+ (w->overlay_arrow_bitmap
+ ? w->overlay_arrow_bitmap
+ : OVERLAY_ARROW_BITMAP));
}
@@ -738,7 +741,7 @@ update_window_fringes (w, force_p)
{
unsigned indicate_bob_p, indicate_top_line_p;
unsigned indicate_eob_p, indicate_bottom_line_p;
-
+
row = w->desired_matrix->rows + rn;
if (!row->enabled_p)
row = w->current_matrix->rows + rn;
@@ -747,7 +750,7 @@ update_window_fringes (w, force_p)
indicate_top_line_p = row->indicate_top_line_p;
indicate_eob_p = row->indicate_eob_p;
indicate_bottom_line_p = row->indicate_bottom_line_p;
-
+
row->indicate_bob_p = row->indicate_top_line_p = 0;
row->indicate_eob_p = row->indicate_bottom_line_p = 0;
@@ -800,10 +803,6 @@ update_window_fringes (w, force_p)
left = row->left_user_fringe_bitmap;
left_face_id = row->left_user_fringe_face_id;
}
-#if 0 /* this is now done via an overlay */
- else if (row->overlay_arrow_p)
- left = OVERLAY_ARROW_BITMAP;
-#endif
else if (row->indicate_bob_p && boundary_pos <= 0)
left = ((row->indicate_eob_p && boundary_pos < 0)
? LEFT_BRACKET_BITMAP : TOP_LEFT_ANGLE_BITMAP);
@@ -882,7 +881,7 @@ update_window_fringes (w, force_p)
}
-/* Compute actual fringe widths for frame F.
+/* Compute actual fringe widths for frame F.
If REDRAW is 1, redraw F if the fringe settings was actually
modified and F is visible.
@@ -1099,7 +1098,7 @@ DEFUN ("define-fringe-bitmap", Fdefine_fringe_bitmap, Sdefine_fringe_bitmap,
BITS is either a string or a vector of integers.
HEIGHT is height of bitmap. If HEIGHT is nil, use length of BITS.
WIDTH must be an integer between 1 and 16, or nil which defaults to 8.
-Optional forth arg ALIGN may be one of `top', `center', or `bottom',
+Optional fourth arg ALIGN may be one of `top', `center', or `bottom',
indicating the positioning of the bitmap relative to the rows where it
is used; the default is to center the bitmap. Fourth arg may also be a
list (ALIGN PERIODIC) where PERIODIC non-nil specifies that the bitmap
@@ -1133,7 +1132,7 @@ Return new bitmap number, or nil of no more free bitmap slots. */)
fill2 = fb.height - h - fill1;
}
}
-
+
if (NILP (width))
fb.width = 8;
else
@@ -1220,7 +1219,7 @@ Return new bitmap number, or nil of no more free bitmap slots. */)
DEFUN ("set-fringe-bitmap-face", Fset_fringe_bitmap_face, Sset_fringe_bitmap_face,
1, 2, 0,
- doc: /* Set face for fringe bitmap FRINGE-ID to FACE.
+ doc: /* Set face for fringe bitmap FRINGE-ID to FACE.
If FACE is nil, reset face to default fringe face. */)
(fringe_id, face)
Lisp_Object fringe_id, face;
@@ -1247,7 +1246,7 @@ If FACE is nil, reset face to default fringe face. */)
DEFUN ("fringe-bitmaps-at-pos", Ffringe_bitmaps_at_pos, Sfringe_bitmaps_at_pos,
0, 2, 0,
- doc: /* Return fringe bitmaps of row containing position POS in window WINDOW.
+ doc: /* Return fringe bitmaps of row containing position POS in window WINDOW.
If WINDOW is nil, use selected window. If POS is nil, use value of point
in that window. Return value is a cons (LEFT . RIGHT) where LEFT and RIGHT
are the fringe bitmap numbers for the bitmaps in the left and right fringe,
@@ -1349,7 +1348,7 @@ w32_reset_fringes ()
{
/* Destroy row bitmaps. */
int bt;
-
+
for (bt = NO_FRINGE_BITMAP + 1; bt < max_used_fringe_bitmap; bt++)
rif->destroy_fringe_bitmap (bt);
}