all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using face of newline for remainer of display line
@ 2015-08-12 15:01 Jonas Bernoulli
  2015-08-12 16:09 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Bernoulli @ 2015-08-12 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

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.  Is there a way to tell Emacs
to also use other face properties for the remainer of the display line?

  Thanks,
  Jonas



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using face of newline for remainer of display line
  2015-08-12 15:01 Using face of newline for remainer of display line Jonas Bernoulli
@ 2015-08-12 16:09 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2015-08-12 16:09 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-12 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12 15:01 Using face of newline for remainer of display line Jonas Bernoulli
2015-08-12 16:09 ` Eli Zaretskii

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.