From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: setnu.el / setnu+.el Date: Wed, 21 Dec 2005 23:24:18 -0800 Message-ID: References: <873bkml4xc.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135236443 21155 80.91.229.2 (22 Dec 2005 07:27:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 07:27:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 22 08:27:22 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EpKrA-0006V1-7y for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Dec 2005 08:27:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpKs9-0006Ea-CB for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Dec 2005 02:28:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EpKpP-0005as-ET for help-gnu-emacs@gnu.org; Thu, 22 Dec 2005 02:25:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EpKpO-0005aD-3S for help-gnu-emacs@gnu.org; Thu, 22 Dec 2005 02:25:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpKpN-0005a0-AV for help-gnu-emacs@gnu.org; Thu, 22 Dec 2005 02:25:29 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EpKoS-0008V9-6n for help-gnu-emacs@gnu.org; Thu, 22 Dec 2005 02:24:32 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBM7OP1q032566 for ; Thu, 22 Dec 2005 01:24:26 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jBM7OPIF008131 for ; Thu, 22 Dec 2005 00:24:25 -0700 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw6-141-144-115-173.vpn.oracle.com [141.144.115.173]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jBM7OO0I008124 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 22 Dec 2005 00:24:25 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <873bkml4xc.fsf-monnier+gnu.emacs.help@gnu.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32157 Archived-At: > (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.)