unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: setnu.el / setnu+.el
Date: Wed, 21 Dec 2005 23:24:18 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEEKHDAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <873bkml4xc.fsf-monnier+gnu.emacs.help@gnu.org>

    > (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	other threads:[~2005-12-22  7:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.20010.1135147162.20277.help-gnu-emacs@gnu.org>
2005-12-21 17:49 ` setnu.el / setnu+.el Stefan Monnier
2005-12-22  7:24   ` Drew Adams [this message]
2005-12-22 16:24     ` Kevin Rodgers
     [not found]     ` <mailman.20176.1135268751.20277.help-gnu-emacs@gnu.org>
2005-12-22 17:57       ` Stefan Monnier
2005-12-22 18:42         ` Drew Adams
2005-12-23 21:48         ` Kevin Rodgers
2005-12-23 21:57           ` Drew Adams
     [not found]         ` <mailman.20286.1135374622.20277.help-gnu-emacs@gnu.org>
2005-12-26 16:44           ` Stefan Monnier
2005-12-27 17:01             ` Kevin Rodgers
     [not found]             ` <mailman.20559.1135702971.20277.help-gnu-emacs@gnu.org>
2005-12-29  3:56               ` Stefan Monnier
     [not found] <mailman.20287.1135375137.20277.help-gnu-emacs@gnu.org>
2005-12-26 16:47 ` Stefan Monnier
2005-12-21  4:54 Sean Sieger
2005-12-21  5:12 ` Drew Adams
2005-12-21  5:22   ` Sean Sieger
2005-12-21  6:38     ` Drew Adams
2005-12-21 15:21       ` Sean Sieger
2005-12-21 17:11       ` Kevin Rodgers
2005-12-22  7:24         ` Drew Adams
2005-12-23  5:07 ` Sean Sieger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICEEKHDAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).