[Top][All Lists]

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

Re: Faces don't work in overlays

From: Ehud Karni
Subject: Re: Faces don't work in overlays
Date: Tue, 17 Jul 2001 18:54:38 +0300

On Tue, 17 Jul 2001 17:04:28 +0200, 520054004144-0001@t-online.de (Pascal 
Wassong) wrote:
> Below is part of a elisp code :
>       (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.

You may have problem with the overlay priority. Try to add:
    (overlay-put eol-overlay 'priority 999) 

I checked your code (with and without my addition) and it works (both
times), but when a higher priority overlay is over spanning it, the
face is not shown (this is solved by my addition).


 Ehud Karni     Mivtach - Simon  Insurance   /"\
 Tel: +972-3-6212-757 Fax: +972-3-6292-544   \ /  ASCII Ribbon Campaign
 (USA) Fax and  voice  mail: 1-815-5509341    X   Against  HTML  Mail
     Better     Safe     Than     Sorry      / \
     mailto:ehud@unix.simonwiesel.co.il    http://www.simonwiesel.co.il

reply via email to

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