help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using face of newline for remainer of display line


From: Eli Zaretskii
Subject: Re: Using face of newline for remainer of display line
Date: Wed, 12 Aug 2015 19:09:26 +0300

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]