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

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

Re: setnu.el / setnu+.el


From: Stefan Monnier
Subject: Re: setnu.el / setnu+.el
Date: Wed, 21 Dec 2005 12:49:05 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> (defun setnu-set-glyph-face (g face)
>    (put-text-property 0 (length g) 'face face g))

Most likely the problem is that the face property of your overlay's
after-string is merged with the face property of the buffer text.
I expect that the overlay string's face takes precedence, so if you make
the face inherit from the `default' face, none of the bufer text's face
attributes will "show through".

BTW has anyone tried to re-implement setnu using the `margin' rather than
after-strings?


        Stefan


reply via email to

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