From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using face of newline for remainer of display line
Date: Wed, 12 Aug 2015 19:09:26 +0300 [thread overview]
Message-ID: <83vbcko5e1.fsf@gnu.org> (raw)
In-Reply-To: <87d1yso8j5.fsf@bernoul.li>
> From: Jonas Bernoulli <jonas@bernoul.li>
> Date: Wed, 12 Aug 2015 17:01:34 +0200
>
> Is it possible to use all properties of the face of the newline
> character at the end of a line for the complete remainer of the display
> line?
>
> (insert (propertize "heading\n"
> 'face '(:background "gray90" :underline t)))
>
> This causes the complete display line to use "gray90" as background
> color, but only "heading " is underlined.
Not "heading ", but "heading" followed by the newline.
> Is there a way to tell Emacs to also use other face properties for
> the remainer of the display line?
Append to the line a stretch glyph which goes all the way to the edge
of the window (e.g., with :align-to display property). Otherwise,
Emacs simply instructs X to fill the rest of the line with the
background color.
prev parent reply other threads:[~2015-08-12 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-12 15:01 Using face of newline for remainer of display line Jonas Bernoulli
2015-08-12 16:09 ` Eli Zaretskii [this message]
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=83vbcko5e1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@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.