From: Yuri Khan <yuri.v.khan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 26909@debbugs.gnu.org
Subject: bug#26909: 25.1; A face for margins
Date: Sat, 13 May 2017 21:59:29 +0700 [thread overview]
Message-ID: <CAP_d_8Uk5nBHw78v5H5+TaK-d8h7QhnQkzyF+ygM9p84EJuj5Q@mail.gmail.com> (raw)
In-Reply-To: <83lgq096iz.fsf@gnu.org>
On Sat, May 13, 2017 at 9:27 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> A face can only affect places where something is displayed using that
> face. Display margins only display text if the buffer specifies text
> properties or overlays which display in the margins. But what you
> would like to do calls for having a face that would affect screen
> space where _nothing_ is displayed, and such screen space in Emacs is
> always displayed using the frame's background color, not by using some
> face.
>
> 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.
That might in fact work for me. However, I do not seem to be able to do that.
(linum-mode) ^X^E
(set-frame-parameter nil 'background-color "gray95") ^X^E
* The backgrounds of both the margin and the buffer turn light gray.
(set-face-background 'default "white") ^X^E
* The backgrounds of both the buffer and the margin turn back to white.
Indeed, (elisp) Font and Color Parameters says:
| ‘background-color’
| The color to use for the background of characters. It is
| equivalent to the ‘:background’ attribute of the ‘default’ face.
So the ‘default’ face is already special in that its :background is
used to draw the frame background. The proposed new face could be also
special that way.
(If by “background color for the frame” you meant something other than
the ‘background-color’ frame parameter, please point me to it.)
next prev parent reply other threads:[~2017-05-13 14:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 14:07 bug#26909: 25.1; A face for margins Yuri Khan
2017-05-13 14:27 ` Eli Zaretskii
2017-05-13 14:59 ` Yuri Khan [this message]
2017-05-13 16:40 ` Eli Zaretskii
2017-05-13 17:19 ` Yuri Khan
2017-05-13 17:42 ` Eli Zaretskii
2020-05-11 21:01 ` Clément Pit-Claudel
2020-05-12 16:52 ` Eli Zaretskii
2020-05-12 17:06 ` Clément Pit-Claudel
2020-05-12 17:21 ` Eli Zaretskii
2020-05-12 17:28 ` Clément Pit-Claudel
2020-05-12 17:40 ` Eli Zaretskii
2020-10-01 2:49 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP_d_8Uk5nBHw78v5H5+TaK-d8h7QhnQkzyF+ygM9p84EJuj5Q@mail.gmail.com \
--to=yuri.v.khan@gmail.com \
--cc=26909@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.