diff options
Diffstat (limited to 'src/fringe.c')
| -rw-r--r-- | src/fringe.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/fringe.c b/src/fringe.c index 85aa14da727..60691846814 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -587,8 +587,8 @@ draw_fringe_bitmap_1 (struct window *w, struct glyph_row *row, int left_p, int o | |||
| 587 | if (face_id == DEFAULT_FACE_ID) | 587 | if (face_id == DEFAULT_FACE_ID) |
| 588 | { | 588 | { |
| 589 | Lisp_Object face = fringe_faces[which]; | 589 | Lisp_Object face = fringe_faces[which]; |
| 590 | face_id = NILP (face) ? lookup_named_face (f, Qfringe, false) | 590 | face_id = NILP (face) ? lookup_named_face (w, f, Qfringe, false) |
| 591 | : lookup_derived_face (f, face, FRINGE_FACE_ID, 0); | 591 | : lookup_derived_face (w, f, face, FRINGE_FACE_ID, 0); |
| 592 | if (face_id < 0) | 592 | if (face_id < 0) |
| 593 | face_id = FRINGE_FACE_ID; | 593 | face_id = FRINGE_FACE_ID; |
| 594 | } | 594 | } |
| @@ -1633,20 +1633,10 @@ If FACE is nil, reset face to default fringe face. */) | |||
| 1633 | if (!n) | 1633 | if (!n) |
| 1634 | error ("Undefined fringe bitmap"); | 1634 | error ("Undefined fringe bitmap"); |
| 1635 | 1635 | ||
| 1636 | /* The purpose of the following code is to signal an error if FACE | 1636 | /* We used to check, as a convenience to callers, for basic face |
| 1637 | is not a face. This is for the caller's convenience only; the | 1637 | validity here, but since validity can depend on the specific |
| 1638 | redisplay code should be able to fail gracefully. Skip the check | 1638 | _window_ in which this buffer is being displayed, defer the check |
| 1639 | if FRINGE_FACE_ID is unrealized (as in batch mode and during | 1639 | to redisplay, which can cope with bad face specifications. */ |
| 1640 | daemon startup). */ | ||
| 1641 | if (!NILP (face)) | ||
| 1642 | { | ||
| 1643 | struct frame *f = SELECTED_FRAME (); | ||
| 1644 | |||
| 1645 | if (FACE_FROM_ID_OR_NULL (f, FRINGE_FACE_ID) | ||
| 1646 | && lookup_derived_face (f, face, FRINGE_FACE_ID, 1) < 0) | ||
| 1647 | error ("No such face"); | ||
| 1648 | } | ||
| 1649 | |||
| 1650 | fringe_faces[n] = face; | 1640 | fringe_faces[n] = face; |
| 1651 | return Qnil; | 1641 | return Qnil; |
| 1652 | } | 1642 | } |