Subject: bug#26909: 25.1; A face for margins

From: Yuri Khan <[email-masked]>
Date: Sun, 14 May 2017 00:19:40 +0700

On Sat, May 13, 2017 at 11:40 PM, Eli Zaretskii <[email-masked]> wrote:
>> > You could specify a light gray background color for the frame, and
>> > another color for the default face, but I think this would cause
>> > unpleasant effects elsewhere on display, e.g. in the text area beyond
>> > EOB.
>>
>> (linum-mode) ^X^E
>> (set-frame-parameter nil 'background-color "gray95") ^X^E
>> (set-face-background 'default "white") ^X^E
>>
>> * The backgrounds of both the buffer and the margin turn back to white.
>
> Maybe I've misremembered, sorry.
>
> Did you try remapping the default face, and if so, did that fail to
> work as well?

You mean, like this?

(linum-mode)
(set-frame-parameter nil 'background-color "gray95")
(face-remap-add-relative 'default :background "white")

Same as above: remapping the default face’s background affects the margin, too.