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: 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.)





reply via email to

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