[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: setnu.el / setnu+.el
From: |
Drew Adams |
Subject: |
RE: setnu.el / setnu+.el |
Date: |
Wed, 21 Dec 2005 23:24:18 -0800 |
> (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".
I'm not knowledgeable in this area. I tried what Kevin suggested, in
setnu-make-setnu-extent:
(setnu-set-extent-property e 'face 'default)
Is that what you meant also? It removed all fontification in the entire
buffer (when the line numbers were present). The line numbers were
(correctly) bold, but nothing else appeared fontified (colored).
BTW has anyone tried to re-implement setnu using the `margin'
rather than after-strings?
Not that I know of. Could you explain the relative advantages and
disadvantages> (Setnu uses before-strings, not after-strings, BTW.)
Re: setnu.el / setnu+.el, Sean Sieger, 2005/12/23
- Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/21
- RE: setnu.el / setnu+.el,
Drew Adams <=
- Re: setnu.el / setnu+.el, Kevin Rodgers, 2005/12/22
- Message not available
- Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/22
- RE: setnu.el / setnu+.el, Drew Adams, 2005/12/22
- Re: setnu.el / setnu+.el, Kevin Rodgers, 2005/12/23
- RE: setnu.el / setnu+.el, Drew Adams, 2005/12/23
- Message not available
- Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/26
- Re: setnu.el / setnu+.el, Kevin Rodgers, 2005/12/27
- Message not available
- Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/28
Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/26