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

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

Re: Faces don't work in overlays


From: Kalle Olavi Niemitalo
Subject: Re: Faces don't work in overlays
Date: 17 Jul 2001 19:07:42 +0300

address@hidden (Pascal Wassong) writes:

>   (let ((eol-overlay (make-overlay arg (1+ arg))))
>     (overlay-put eol-overlay 'after-string "some text")
>     (overlay-put eol-overlay 'face 'font-lock-comment-face))
> 
> I create an overlay and want to show it in a specific face.
> This does not work.

I have the same Emacs binary as you, and here it works: the text
between arg and (1+ arg) and "some text" both get drawn in
font-lock-comment-face.

However, if that text is a newline (like if arg is 2 and there are
plenty of empty lines at the top of the buffer), it doesn't work.
Also, replacing "some text" with #("some text" 0 9 (face
font-lock-comment-face)) has no effect.



reply via email to

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