Subject: bug#11068: 24.0.94; Face-remapped background does not extend to end of window

From: Chong Yidong <[email-masked]>
Date: Sat, 24 Mar 2012 22:17:41 +0800

Eli Zaretskii <[email-masked]> writes:

>    /* Face extension extends the background and box of IT->face_id
>       to the end of the line.  If the background equals the background
>       of the frame, we don't have to do anything.  */
>    if (it->face_before_selective_p)
>      face = FACE_FROM_ID (f, it->saved_face_id);
> +  else if (it->face_id == DEFAULT_FACE_ID)
> +    face = default_face;
>    else
>      face = FACE_FROM_ID (f, it->face_id);

This looks a bit strange.  Why is DEFAULT_FACE_ID handled specially
here?  Shouldn't we be checking for face remapping no matter what the
face_id is?