unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* question concerning overlay before-strings and property inheritance
@ 2011-04-25 20:34 az
  2011-04-25 21:31 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: az @ 2011-04-25 20:34 UTC (permalink / raw)
  To: help-gnu-emacs

Is there any way to arrange for an overlay before-string to inherit 
face properties from other overlays?  

Evaluation of the following form provides a test case of my problem: 

(save-excursion
  (goto-char 1)
  (insert ";; String\n")
  (let ((o (make-overlay 6 7))
        (o2 (make-overlay 4 8)))
    (overlay-put o 'before-string "FOO")
    (overlay-put o2 'face 'highlight)))

As you can see, the before-string "FOO" doesn't inherit any
highlighting from the second overlay.  Is it possible to set up
the overlays up so that the before-string inherits the face
property from the second overlay?  (I know I can manually
propertize the before-string with the relevant face, but I'd
like, if possible, to arrange for the face inheritance to happen
automatically.)







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

end of thread, other threads:[~2011-04-25 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-25 20:34 question concerning overlay before-strings and property inheritance az
2011-04-25 21:31 ` Eli Zaretskii
2011-04-25 22:42   ` az

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).